Change FileFormat from DOS to UNIX

If you have a file with dos format, simply open it with vim and type

:e ++ff=unix

to get it as unix file format.

Supported file formats are:

unix LF only
dos CRLF
mac CR only

CR is carriage return (Ctrl-M, ^M or hex 0D).
LF is linefeed (Ctrl-J, ^J or hex 0A)

Leave a Comment