[olug] How to remove ^M's from files?

Nick Walter waltern at iivip.com
Thu Dec 11 15:41:44 UTC 2003


All of my red hat linux systems come with the utility dos2unix which
does this very nicely.  You can also do it with sed, but I don't have a
script for that handy.  A google search should turn one up promptly.

Nick Walter

On Thu, 2003-12-11 at 09:34, 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?
> 
> ~shaughn
> http://emosai.net
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 



More information about the OLUG mailing list