How to remove ^M character

Simon Barner barner at in.tum.de
Fri Aug 1 07:02:17 PDT 2003


Hi,

> 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
unix2dos(1).

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030801/883e05af/attachment.bin


More information about the freebsd-questions mailing list