From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 15:43: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 0B92737B401 for ; Tue, 15 Apr 2003 15:43:11 -0700 (PDT) Received: from quasi.concon.homeip.net (adsl-67-116-217-192.dsl.sndg02.pacbell.net [67.116.217.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D43243F3F for ; Tue, 15 Apr 2003 15:43:10 -0700 (PDT) (envelope-from jconner@enterit.com) Received: from there (snafux [192.168.100.13]) by quasi.concon.homeip.net (8.12.8/8.12.8) with SMTP id h3FLlUBT002685 for ; Tue, 15 Apr 2003 17:47:31 -0400 Message-Id: <200304152147.h3FLlUBT002685@quasi.concon.homeip.net> Content-Type: text/plain; charset="iso-8859-1" From: Jim To: questions@freebsd.org Date: Tue, 15 Apr 2003 14:46:05 -0800 X-Mailer: KMail [version 1.3.2] References: <200304152145.h3FLjmBT002682@quasi.concon.homeip.net> In-Reply-To: <200304152145.h3FLjmBT002682@quasi.concon.homeip.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [mail_lists] Re: dos2unix??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jconner@enterit.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 22:43:11 -0000 On Tuesday 15 April 2003 15:44, Jim wrote: Also, for those pesky ^M's perl -p -i -e 'tr/\r//d' filename - Jim | On Tuesday 15 April 2003 14:39, Matthew Seaman wrote: | | perl -p -i -e 'tr/\x92\x93//d' filename | | if you want to make a back up of the original file then: | | perl -pi.bak -e 'tr/\x92\x93//d' filename | | | On Tue, Apr 15, 2003 at 01:39:06PM -0700, Gary D Kline wrote: | | > May I leverage off this post to see if anyone has a solution to | | > scraping away thoseflea-bitten Losedows '0x92' and '0x93' | | > characters and replacing with a simpl apostroph ('). | | > | | > If there is already somethng hacked, I would be greatly obliged | | > for a pointer. | | | | In web pages? You can fix up such html entities with tidy (ports | | www/tidy or www/tidy-devel) --- the tidy-devel port has the '-bare' | | option that appears to do exactly the sort of transformation you | | require. See http://tidy.sourceforge.net/docs/quickref.html#bare | | | | Cheers, | | | | Matthew -- - Jim