Converting line endings

By | 2011/08/08

Install the small nice applications called “Flip” with:

brew install flip

and then execute following command:

flip -u filename

Options:
-u = convert file(s) to Unix newline format (newline)
-d = convert file(s) to MS-DOS/Windows newline format (linefeed + newline)
-m = convert file(s) to Macintosh newline format (linefeed)
-t = display current file type, no file modifications