On Wed, 5 Dec 2001, Booher Timothy B 1stLt AFRL/MNAC wrote:

> I have what seems to be a persistent problem with all files that I import
> from dos into emacs. I have those control M's all over the place.
>
> Does anyone know of a perl script to 'clean' these files?

You can do this in one line:

perl -pi.bak -e 's/\cM//g' <filename>

Best way to avoid is to make sure you have your transfer type set as ASCII
when ftping files from Windows to Unix.

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
Center meeting at 4pm in 2C-543.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to