Fix line endings in text files created on Microsoft (Dos) based platfoms to for Unix and Linux

Use dos2unix from the tofrodos package to convert files with Windows (DOS) style CRLF (carriage return and line feed) line endings to Unix style LF (linefeed only) line endings. Install as follows:

sudo aptitude install tofrodos

How you use the tool:

dos2unix dosfile.txt