The following will work, assuming that you are using some form of unix with the vi editor:
:%s/^M//g
To get the control-M character, you would first type control-V, followed by the control-M

This problem also occurs if you are trying to ftp from a Windows system to unix, and you send the file in binary format. Change it to ascii, and that should fix your problem.

TStanley
--------

In reply to Re: Removing Windows newlines by TStanley
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":