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
--------