From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 19:34:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4FAA16A4CF for ; Sun, 30 Nov 2003 19:34:16 -0800 (PST) Received: from imf24aec.mail.bellsouth.net (imf24aec.mail.bellsouth.net [205.152.59.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D82943FAF for ; Sun, 30 Nov 2003 19:34:13 -0800 (PST) (envelope-from b_cassidy@bellsouth.net) Received: from bsdjunky.homeunix.org ([68.217.185.94]) by imf24aec.mail.bellsouth.netSMTP <20031201033412.UIXY1903.imf24aec.mail.bellsouth.net@bsdjunky.homeunix.org> for ; Sun, 30 Nov 2003 22:34:12 -0500 Date: Sun, 30 Nov 2003 22:39:20 -0600 From: Bryan Cassidy To: freebsd-questions@freebsd.org Message-Id: <20031130223920.662ce149.b_cassidy@bellsouth.net> 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> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Remove ^M characters from xhtml file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2003 03:34:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, why have a BUNCH of ^M characters in your file if you don't *need* them? If there is no point in having these characters I want them removed. BTW, your command worked fine. I've tried it on several files and it works just fine. Thanks. On Mon, 1 Dec 2003 03:53:00 +0100 Melvyn Sopacua wrote: > 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 wrote: > > > > Sorry about sending you a e-mail directly. The tr -d '/r' < name > > > > > Robin Schoonover 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======================================================= > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ysX4m8uTTHnDH3ERAuv7AKCyUppGcn1gttFeGPQKRaHcMSqfMgCdFpJd T0jXqXZgUEFi5gsM0DkkgSo= =eors -----END PGP SIGNATURE-----