From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 18:34:28 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 2C19316A4CE for ; Sun, 30 Nov 2003 18:34:28 -0800 (PST) Received: from imf20aec.mail.bellsouth.net (imf20aec.mail.bellsouth.net [205.152.59.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8D9043F3F for ; Sun, 30 Nov 2003 18:34:26 -0800 (PST) (envelope-from b_cassidy@bellsouth.net) Received: from bsdjunky.homeunix.org ([68.217.185.94]) by imf20aec.mail.bellsouth.netSMTP <20031201023426.KMHJ1873.imf20aec.mail.bellsouth.net@bsdjunky.homeunix.org> for ; Sun, 30 Nov 2003 21:34:26 -0500 Date: Sun, 30 Nov 2003 21:39:33 -0600 From: Bryan Cassidy To: freebsd-questions@freebsd.org Message-Id: <20031130213933.72712e71.b_cassidy@bellsouth.net> In-Reply-To: <20031130212913.1d7c0126.b_cassidy@bellsouth.net> References: <20031201031602.GA80581@bsdjunky.homeunix.org> <20031130191746.09011caf.end@endif.cjb.net> <20031130212913.1d7c0126.b_cassidy@bellsouth.net> 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 02:34:28 -0000 -----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. On Sun, 30 Nov 2003 21:29:13 -0600 Bryan Cassidy wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Sorry about sending you a e-mail directly. The tr -d '/r' < name > > newname worked perfect. Thanks. > > On Sun, 30 Nov 2003 19:17:46 -0700 > Robin Schoonover wrote: > > > On Sun, 30 Nov 2003 21:16:02 -0600, Bryan Cassidy > > wrote: > > > I've downloaded a couple of .xhtml files and they have ^M > > > characters all through it. I tried the col -b < name > newname > > > command on these files but when I do that it erases the whole > > > document. Any ideas? > > > > dos2unix (converters/unix2dos in ports) is an easy route (dos2unix > > name). Also you can use the tr command (tr -d '\r' < name > > > newname). > > > > -- > > Robin Schoonover (aka End) > > # > > # You hear the moon howling at you. > > # -- NetHack > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (FreeBSD) > > iD8DBQE/yrWJm8uTTHnDH3ERAoMmAJ4wNxUHEGTzOImkD9rxR+rAsb3c9gCghBha > OstE8EoA4n4FaKIa+lTp2mw= > =83Sy > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/yrf1m8uTTHnDH3ERAuZHAJ9cJmkgPKcH4M7SfFByydaH97I1JgCgoN5T o/kW51mvb28bn9tR0bZGGAg= =rTBp -----END PGP SIGNATURE-----