On May 10, David A. Desrosiers said:

>
>>    It didn't work ...
>>    the reason .. Attack of the ^M 's
>
>       perl is your friend:
>
>       perl -pi -e 's#\r\n#\n#g' formail.pl

Why use s/// if you don't have to?

  japhy% perl -pi -e 'tr/\r//d' files...

Why use Perl if you don't have to?

  japhy% tr -d '\r' < file > file.new; mv file.new file

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734

Reply via email to