[SATLUG] searching for a hexvalue with vi

Kase Saylor h_oudini at hotmail.com
Thu Dec 20 10:58:41 CST 2007


Borries Demeler wrote:
> Unfortunately, it doesn't tell me what i need to know. the problem I am facing is 
> that  a user sent me a csv file created with Micro$oft Excel, and the program
> inserted a bunch of unused formula entries in random fields which all turn out to be 
> hex character 0xA0 (decimal 160, oct 240). I want to strip this character with vi,
> or another simple app. At this point, I thought this could be easily done with 
> vim like this
>
> :%s///g
>
> to make a global search and replace, but i don't know how to represent 0xA0 
> in "" so vim will do the task.
>
> -b.
>   
You can try

:%s/xA0//g

Where  is Ctrl-v.

-Kase


_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect


More information about the SATLUG mailing list