Computational Magnetism York
Friday, 20 April 2012
dos2unix on Mac OSX
File conversion from dos to unix files on OSX has always been a bit flaky for me. Handily the tr command in one of two variants does the job:
tr '\r' '\n' < dosfile > unixfile
tr -d '\r' < dosfile > unixfile
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)