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 ... filenIn reply to Re^2: Removing ^M char AKA dos2unix
by jdrago999
in thread Removing ^M char AKA dos2unix
by afshinbozorg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |