Convert text files between DOS, UNIX, and Mac line endings
Convert text between DOS, UNIX, and Mac formats
dos2unix
unix2dos
$ dos2unix myfile.txt
$ unix2dos myfile.txt
$ dos2unix -b *.txt