From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 15:41:31 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 0D64537B401 for ; Tue, 15 Apr 2003 15:41:31 -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 EFB6D43F93 for ; Tue, 15 Apr 2003 15:41:29 -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 h3FLjmBT002682 for ; Tue, 15 Apr 2003 17:45:50 -0400 Message-Id: <200304152145.h3FLjmBT002682@quasi.concon.homeip.net> Content-Type: text/plain; charset="iso-8859-1" X-KMail-Redirect-From: Jim From: Jim (by way of Jim ) Date: Tue, 15 Apr 2003 14:44:24 -0800 To: questions@freebsd.org 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:41:31 -0000 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