in reply to Removing Windows newlines

At the command prompt:
sed -e s/"^M"//g <infile> > <outfile>
You can generate the ^M by pressing Ctrl+V then press M.

-P0w3rK!d