nowalmart ([personal profile] nowalmart) wrote2009-09-16 07:14 pm
Entry tags:

perl -p -e 's/\r/\n/g'

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...