From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 18:49:49 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 9783116A4CE for ; Sun, 30 Nov 2003 18:49:49 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3793943FCB for ; Sun, 30 Nov 2003 18:49:48 -0800 (PST) (envelope-from fbsd-questions@trini0.org) Received: from hivemind.trini0.org (trini0.org[68.39.114.118]) by comcast.net (rwcrmhc11) with ESMTP id <2003120102494701300dsusce>; Mon, 1 Dec 2003 02:49:47 +0000 Received: from gladiator.trini0.org (gladiator.trini0.org [192.168.0.3]) by hivemind.trini0.org (Postfix) with ESMTP id 5224C178 for ; Sun, 30 Nov 2003 21:49:47 -0500 (EST) From: Gerard Samuel To: questions@freebsd.org Date: Sun, 30 Nov 2003 21:49:46 -0500 User-Agent: KMail/1.5.4 References: <20031201031602.GA80581@bsdjunky.homeunix.org> <20031130212913.1d7c0126.b_cassidy@bellsouth.net> <20031130213933.72712e71.b_cassidy@bellsouth.net> In-Reply-To: <20031130213933.72712e71.b_cassidy@bellsouth.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311302149.47132.fbsd-questions@trini0.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 02:49:49 -0000 On Sunday 30 November 2003 10:39 pm, Bryan Cassidy wrote: > -----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. perl -pi -e "s:^M::g" Usually works for me. Picked it up from http://www.freebsddiary.org/control-m.php