search

Loading
Showing posts with label paste command. Show all posts
Showing posts with label paste command. Show all posts

Friday, May 31, 2013

How to join all lines in a file using comma as delimiter?

Sometimes we want to combine the lines in a file as single line. How to achieve this in linux using command line?

We can use the command 'paste' for this purpose.

From its man page,

paste - merge lines of files