[mail_lists] Re: dos2unix???

Jim jconner at enterit.com
Tue Apr 15 15:43:11 PDT 2003


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


More information about the freebsd-questions mailing list