[SATLUG] searching for a hexvalue with vi

Kase Saylor h_oudini at hotmail.com
Thu Dec 20 11:10:03 CST 2007

Kase Saylor wrote:
> 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
That's strange, I typed ":%s/< C - V> xA0//g" (but without the spaces 
between the 'C' and 'V'). I wasn't suggesting searching for "xA0", 
instead in the search press Ctrl-c, then x, then 'A0'. I hope this makes 


i’m is proud to present Cause Effect, a series about real people making a difference.

More information about the SATLUG mailing list