Date: Mon, 1 Dec 2003 03:53:00 +0100 From: Melvyn Sopacua <freebsd-questions@webteckies.org> To: freebsd-questions@freebsd.org Cc: Bryan Cassidy <b_cassidy@bellsouth.net> Subject: Re: Remove ^M characters from xhtml file Message-ID: <200312010353.01517.freebsd-questions@webteckies.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
[-- Attachment #1 --] 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@bellsouth.net> wrote: > > Sorry about sending you a e-mail directly. The tr -d '/r' < name > > > Robin Schoonover <end@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@sarevok.webteckies.org:/usr/obj/usr/src/sys/ SAREVOK_NOFW_DBG i386 ======================================================= [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/yq0NOv9JNmfFN5URAv/3AJ92MDTVv46CrK8GRF4vw/E2cuAKowCfTt3L 506DjQKIRlfU09SiB4OoJ3E= =N+lw -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312010353.01517.freebsd-questions>
