[ILUG] ^M quickie

Vincent Cunniffe vcunniff at dogma.slashnull.org
Thu May 4 09:42:48 IST 2000


Michael Turley wrote:
> 
> Does anyone know of a quick way to get rid of ^M from
> multiple files of the same format? Today I ambitiously
> tryied to use perl -p -e 's/<ctrl-v><return>//' *.c
> (I've managed to use the <ctrl-v><return> in vi when
> writing little perl filters before but I'd like a
> better less ad-hoc method if anyone knows). Cheers!

'dos2unix' is a commandline utility that'll do it for an entire file.

Vin




More information about the ILUG mailing list