What's wrong with this command line?
cat filename | tr -d '\015' > newfile
As Tom Christiansen wrote in a Usenet article:
A wise man once said: if you find yourself calling
one argument, then you're probably doing something you shouldn't.
That command line only uses
to feed the file to the standard
It's a lot more efficient to have the shell do the redirection for you
tr -d '\015' < filename > newfile