GTKC Knowledgebase
A little bit of wisdom
Convert a column of text to a row
Posted by  Admin on


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