- Code: Select all
sed '{:s;N;s/\n//g;t s}' t1.txt
where t1.txt is the file we wish to remove the newlines from.
sed '{:s;N;s/\n//g;t s}' t1.txtUsers browsing this forum: No registered users and 0 guests
dsplabs home ↔
linux blog ↔
linux forums new! ↔
travel photography ↔
awklores new! ↔
cryptography ↔
james' home
©2009 dsplabs.com.au