in reply to Removing Windows newlines

This should do it
perl -pi -e 's/\r\n?/\n/' yourfile
See. perlrun for more info on perl's commandline options.
HTH

_________
broquaint