[Gllug] simple sed question

robin.c.smith at bt.com robin.c.smith at bt.com
Mon Oct 15 10:07:30 UTC 2001


We have a program that generates a log file and sometimes this log file gets
a bit corrupted and splits the line up with
^M (control-M) at the end. How do I get rid of the ^M and join the lines in
sed?

e.g.
The quick brown f^M
ox jumps over the lazy dog.

should become

The quick brown fox jumps over the lazy dog.

Robin

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list