d2u

d2u reads a stream from stdin or a file, replaces any CR/LF sequences by a simple linefeed and writes to stdout, the input file or another file.
examples:

$ d2u <dos.txt >unix.txt
$ d2u dos.txt unix.txt
$ cat dos.txt | d2u > unix.txt
$ d2u dos2unix.txt

download

d2u.tar.bz2