Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2003 14:44:24 -0800
From:      Jim <jconner@enterit.com>(by way of Jim <jconner@enterit.com>)
To:        questions@freebsd.org
Subject:   Re: [mail_lists] Re: dos2unix???
Message-ID:  <200304152145.h3FLjmBT002682@quasi.concon.homeip.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304152145.h3FLjmBT002682>