Replace in place with perl – converting windows to unix line ending
2012-03-03
− Maxime Biais
1 minute read
$ cat -e test.txt mop^M$ mip^M$ $ perl -pi -e "s/\r\n$/\n/g" test.txt $ cat -e test.txt mop$ mip$