How to remove ^M character

Simon Barner barner at
Fri Aug 1 07:02:17 PDT 2003


> I ftp'd a file from windows to freebsd....not its every line has ^M at its
> end.
> Is there some command in vi (or some way) by whcih ^M can be removed.

You can use dos2unix(1) for that. There is also the complementary tool

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url :

More information about the freebsd-questions mailing list