From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 07:29:42 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 1760D16A4CE for ; Mon, 1 Dec 2003 07:29:42 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29D5243FE3 for ; Mon, 1 Dec 2003 07:29:21 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id hB1FTHF01635; Mon, 1 Dec 2003 10:29:17 -0500 (EST) From: Jerry McAllister Message-Id: <200312011529.hB1FTHF01635@clunix.cl.msu.edu> To: b_cassidy@bellsouth.net (Bryan Cassidy) Date: Mon, 1 Dec 2003 10:29:16 -0500 (EST) In-Reply-To: <20031201031602.GA80581@bsdjunky.homeunix.org> from "Bryan Cassidy" at Nov 30, 2003 09:16:02 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 15:29:42 -0000 > > 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? This is because the file was created in MS-land. On your FreeBSd system do: tr -d "\r" < oldfile > newfile and it will clear them up nicely. Note, only do this to text files. ////jerry