dos2unix | convert text file line endings between CRLF and LF | Mehr ...
This package includes two utilities to handle conversion of the text file line ending: dos2unix and mac2unix. The text files stored under Windows and DOS typically have two ASCII characters at the end: the CR followed by LF code. The Unix and Linux store text files ending only to LF and older Macs stored the files ending to CR. While modern editors can read any one of them, there may be need to convert files to one format or another. This is the classic utility developed 1989.