From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 19:07:11 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 3F32616A4CE for ; Sun, 30 Nov 2003 19:07:11 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-47.apple.com [17.250.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2860543F3F for ; Sun, 30 Nov 2003 19:07:10 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id hB1378AA000291; Sun, 30 Nov 2003 19:07:08 -0800 (PST) Received: from [192.168.2.8] (12-231-115-57.client.attbi.com [12.231.115.57]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 3.0) with ESMTP id hB1374aN014408; Sun, 30 Nov 2003 19:07:07 -0800 (PST) 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> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6E4D2542-23AB-11D8-9D3B-000A95BBCCF8@mac.com> Content-Transfer-Encoding: 7bit From: paul beard Date: Sun, 30 Nov 2003 19:07:00 -0800 To: Melvyn Sopacua X-Mailer: Apple Mail (2.606) cc: freebsd-questions@freebsd.org cc: Bryan Cassidy 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:07:11 -0000 On Nov 30, 2003, at 6:53 PM, Melvyn Sopacua wrote: > 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. > It's distracting to look at all that stuff if you're editing in vi, for example. But for yet one more solution, you can search and replace ^M as Control V Control M in vi. I also use perl -pi "s#\\r#\\n#g" all the time. -- Paul Beard paulbeard [at] mac.com