From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 21:32:02 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 59E7916A4CE for ; Sun, 30 Nov 2003 21:32:02 -0800 (PST) Received: from solomon.io.com (solomon.io.com [199.170.88.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4836043F3F for ; Sun, 30 Nov 2003 21:32:01 -0800 (PST) (envelope-from eighner@io.com) Received: from io.com (aus-as2-088.io.com [199.170.89.88]) by solomon.io.com (8.12.8/8.12.8) with SMTP id hB15fPUF015108; Sun, 30 Nov 2003 23:41:26 -0600 Date: Sun, 30 Nov 2003 23:30:30 -0600 (CST) From: Lars Eighner To: Bryan Cassidy In-Reply-To: <20031201031602.GA80581@bsdjunky.homeunix.org> Message-ID: <20031130232746.H1230@pearl.io.com> References: <20031201031602.GA80581@bsdjunky.homeunix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 05:32:02 -0000 On Sun, 30 Nov 2003, 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? perl -pi -e "s#\r##g" If it is just one or two files it might be just as easy to search and replace \r with nothing in your text editor (depending on your text editor). -- Lars Eighner eighner@io.com -finger for geek code- http://www.io.com/~eighner/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266