The point being that this will correctly convert both \r\n and \r line endings.perl -pi.bak -e 's/\r\n?/\n/g' file1 file2
In reply to Re (tilly) 1: Removing Control Characters
by tilly
in thread Removing Control Characters
by raj8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |