in reply to can't see ^M to process.

In vi, or at least vim, you should be able to issue the following command in command mode to remove them.
:%s/^M//g
Where ^M is entered by hitting CTRL-V then CTRL-M (you'll see it shows up the same as the offending ^M's) Often systems will also have a dos2unix command. (others above have pointed out how to remove them using perl)

Replies are listed 'Best First'.
Re^2: can't see ^M to process.
by Codon (Friar) on Jul 19, 2005 at 16:20 UTC

    Even better for vim:

    :set ff=unix

    Ivan Heffner
    Sr. Software Engineer, DAS Lead
    WhitePages.com, Inc.
      Thanks all. :)