On Tue, 2004-07-13 at 13:04, Nick Rout wrote: > to delete every crlf to a space. > > tried > > sed 's/\015\012/" "/' dbcontents.txt >dbcontents2.txt and > sed 's/\015\012/\024/' dbcontents.txt >dbcontents2.txt and > > > and some variations.
You'd think this kind of thing would be relatively simple, but I've had a look and it is actually a real trick to work with newlines in sed. Have a look at this page from the faq: http://www.student.northpark.edu/pemente/sed/sedfaq4.html#s4.25 Andre
