Wednesday, August 29, 2012

No dos2unix for mac OSX

Nope. You've got to find a third party substitute, download a gnu or BSD version and stick it in /usr/bin, or do conversions much more manually. Most sites I've found recommend the latter with this command:

cat $offending_file | tr '\r' '\n' > $new_filename

for instance:

http://hints.macworld.com/article.php?story=20031018164326986