Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 19:07:00 -0800
From:      paul beard <paulbeard@mac.com>
To:        Melvyn Sopacua <freebsd-questions@webteckies.org>
Cc:        Bryan Cassidy <b_cassidy@bellsouth.net>
Subject:   Re: Remove ^M characters from xhtml file
Message-ID:  <6E4D2542-23AB-11D8-9D3B-000A95BBCCF8@mac.com>
In-Reply-To: <200312010353.01517.freebsd-questions@webteckies.org>
References:  <20031201031602.GA80581@bsdjunky.homeunix.org> <20031130212913.1d7c0126.b_cassidy@bellsouth.net> <20031130213933.72712e71.b_cassidy@bellsouth.net> <200312010353.01517.freebsd-questions@webteckies.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Nov 30, 2003, at 6:53 PM, Melvyn Sopacua wrote:

> Another way: perl -pi.bak -e 's/\r$//' *.xhtml
>
> BTW: why is this even an issue that needs a solution? XHTML doesn't 
> care one
> way or the other, since all linear spacing is folded into one space.
>

It's distracting to look at all that stuff if you're editing in vi, for 
example. But for yet one more solution, you can search and replace ^M 
as Control V Control M in vi.

I also use perl -pi "s#\\r#\\n#g" <filename> all the time.
--
Paul Beard
<paulbeard.no-ip.org/movabletype/>
paulbeard [at] mac.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E4D2542-23AB-11D8-9D3B-000A95BBCCF8>