in reply to Re: Removing ^M char AKA dos2unix
in thread Removing ^M char AKA dos2unix

I like yours better, (and will probably use that from now on) - but this is what I normally do:

perl -p -i -e 's/\r\n/\n/g' file1 file2 ... filen

Replies are listed 'Best First'.
Re^3: Removing ^M char AKA dos2unix
by Anonymous Monk on Feb 27, 2010 at 00:17 UTC
    perl -MExtUtils::Command -e dos2unix file1 file2 dir1
    Or better still, install dos2unix utility