Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 21:49:46 -0500
From:      Gerard Samuel <fbsd-questions@trini0.org>
To:        questions@freebsd.org
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <200311302149.47132.fbsd-questions@trini0.org>
In-Reply-To: <20031130213933.72712e71.b_cassidy@bellsouth.net>
References:  <20031201031602.GA80581@bsdjunky.homeunix.org> <20031130212913.1d7c0126.b_cassidy@bellsouth.net> <20031130213933.72712e71.b_cassidy@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311302149.47132.fbsd-questions>