If you have a file with dos format, simply open it with vim and type
to get it as unix file format.
Supported file formats are:
CR is carriage return (Ctrl-M, ^M or hex 0D).
LF is linefeed (Ctrl-J, ^J or hex 0A)