Remove ^M characters from xhtml file

Gerard Samuel fbsd-questions at trini0.org
Sun Nov 30 18:49:49 PST 2003


On Sunday 30 November 2003 10:39 pm, Bryan Cassidy wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Well, I take that back. It worked on 1 file and then ir started erasing
> the contents of the file.

perl -pi -e "s:^M::g" <filenames>

Usually works for me.
Picked it up from http://www.freebsddiary.org/control-m.php



More information about the freebsd-questions mailing list