Remove ^M characters from xhtml file

Melvyn Sopacua freebsd-questions at webteckies.org
Sun Nov 30 18:53:04 PST 2003


On Monday 01 December 2003 04:39, Bryan Cassidy wrote:

> Well, I take that back. It worked on 1 file and then ir started erasing
> the contents of the file.
>
> On Sun, 30 Nov 2003 21:29:13 -0600
>
> Bryan Cassidy <b_cassidy at bellsouth.net> wrote:

> > Sorry about sending you a e-mail directly. The tr -d '/r' < name >

> > Robin Schoonover <end at endif.cjb.net> wrote:
> > > name). Also you can use the tr command (tr -d '\r' < name >

Spot the difference.

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.
-- 
Melvyn

=======================================================
FreeBSD sarevok.webteckies.org 5.2-BETA FreeBSD 5.2-BETA #1: Sat Nov 29 
00:15:33 CET 2003     root at sarevok.webteckies.org:/usr/obj/usr/src/sys/
SAREVOK_NOFW_DBG  i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031201/9fe4ce8e/attachment.bin


More information about the freebsd-questions mailing list