Skip to content
My Command Line
Commands made simple
Monthly Archives:
March 2016
To replace newline character using sed in Linux
cat test.txt | sed ':a;N;$!ba;s/\n/,/g'