SUMMARY:how to search special character in vi

From: Z H <>
Date: Wed Apr 13 2005 - 17:20:11 EDT
Thanks to Karyn Williams's reply.

Since my goal is to remove all the special character
in the file.

Here is one of the solutions:

:%s/[^ -~]/ /g

I just globally search and replace whatever characters
that is not in the range from space to ~ with space.

And it works.



Here is the original question:

Hello to all helpers:

I have a need to search extended ascii code 227 in a
file using vi.

Could anyone share the tip?


Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
sunmanagers mailing list
Received on Wed Apr 13 17:20:53 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:45 EST