"dos2unix" is a good suggestion.
You can also do with with "sed":
sed 's/^M//g' MYFILE > tmp.tmp
mv tmp.tmp MYFILE
.. or with vi:
<= THE <ESC> KEY PUTS YOU IN COMMAND MODE
THE ":s/ / /" COMMAND DOES A GLOBAL SUBSTITUTE
<Ctl-V><Ctl-M> ALLOWS YOU TO ENTER THE "^M" (NEWLINE) CHARACTER
You can possible also simply ignore the issue.
"vi" (aka "vim" on Linux) doesn't show you the funky "^M" characters.
"wordpad" (aka "write.exe" on Windows) lets you deal with Unix files that don't have the "^M" delimiters.
And my favorite Windows text editor, Ultraedit, (as well, I'm sure, as most/all of the other programmers editors
out there) let you deal with Unix and/or Windows (and/or Mac!) files seamlessly:
'Hope that helps .. PSM