[olug] How to remove ^M's from files?
Sean Kelly
smkelly at zombie.org
Thu Dec 11 16:20:26 UTC 2003
On Thu, Dec 11, 2003 at 09:34:59AM -0600, Shaughn wrote:
> i have a bunch of web pages that have ^M's as the end because they
> weren't saved correctly.
>
> I vaguely remember a command line trick to get rid of these?
>
> anyone know that?
tr -d "^M" < infile > outfile
Note that you have to quote that ^M to be able to type it. Try ^V^M.
--
Sean Kelly | PGP KeyID: D2E5E296
smkelly at zombie.org | http://www.zombie.org
More information about the OLUG
mailing list