DOS/Windows uses CR/LF at the end of lines whereas UNIX has just LF. Dos2unix and unix2dos are simple command line tools to convert between the two formats.