[Nottingham] SED and removing newlines

Michael Simms michael at tuxgames.com
Mon Feb 9 21:21:44 UTC 2009


> Can anyone tell me how I remove newlines from a text file. I

cat filename | tr '\012' ' '
or
cat filename | tr -d '\012'


Thanks
-- 
Michael Simms - CEO, Tux Games



More information about the Nottingham mailing list