perl -p -e 's/\r/\n/g'
Sep. 16th, 2009 07:14 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Just spent the entire day trying to track down a bug that was haunting a work script only to find that the file I was working on in Perl had Mac linebreaks.
Fixing that solved the problems immediately.
Do not ask me why an OS X program is spitting out data files with Mac linebreaks, but...
Fixing that solved the problems immediately.
Do not ask me why an OS X program is spitting out data files with Mac linebreaks, but...