dos2unix

Note: For a cross platform solution, try python EOL fixer

Install

apt-get install tofrodos

Usage

fromdos wip.rst
todos README.txt

To convert a Mac file to Linux format:

dos2unix -c mac detail.html

Note: the fromdos command used to be:

dos2unix tools.txt

To run dos2unix recursively:

find . -type f -exec dos2unix {} \;