sed ':a;N;$!ba;s/\n/ /g'
From here http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n
From here http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n
This web log is my online notebook for software tips and hacks to make my life and hopefully that of someone else just a little bit easy. Should you find any mistakes or have any useful suggestions, please do not hesitate to write to me. Peace! Pavan Ghatty