Using paste:
paste -sd" " inputfile
If you want to comma delimit the file, just add a comma in between the quotes:
paste -sd"," inputfile
A little bit of wisdom
Using paste:
paste -sd" " inputfile
If you want to comma delimit the file, just add a comma in between the quotes:
paste -sd"," inputfile