What is the debian eqivalent of dos2unix and unix2dos?

There's flip (from the 'flip' package);

$ flip -u dos.txt   # convert from CRLF -> LF
$ flip -m unix.txt  # convert from LF -> CRLF

There's also fromdos and todos (from the 'sysutils' package).

'tofrodos' in the sysutils package

fromdos [ options ] [file...]
todos [ options ] [file...]

cat file | tr -d '\r' > file.tmp && mv file.tmp file will do the trick