GTKC Knowledgebase
A little bit of wisdom
Home
| Convert a column of text to a row
Convert a column of text to a row
Posted by
Admin
on
2017-09-01 13:49:42:
Using paste:
paste -sd" " inputfile
If you want to comma delimit the file, just add a comma in between the quotes:
paste -sd"," inputfile
Tags:
Linux
Return to home page:
Home