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

_________
broquaint


In reply to Re: Removing Windows newlines by broquaint
in thread Removing Windows newlines by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":