[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: your mail



On Wed, Apr 07, 2004 at 11:17:33PM -0500, dsavage@peaknet.net wrote:
> The detail I'm looking for is the exact syntax for finding characters
> using their hexadecimal representations. The <92> character appears as
> 92 in a hexedit dump of the file.

So at this point I've done some Googling, and it doesn't look like vim
has an equivalent to perl's \xXX (to search for hex digit XX), so my
solution would be either

  :1,$!perl -pe "s/\\x92/'/g"

or

  :%s/[^[:print:]]/'/g

The second one is inelegant, but it will get the job done if you have
no other non-printable characters in the file.  (The first one just
lets perl do the heavy lifting.)

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.