[GLLUG] vi question
Daniel Hedlund
daniel at digitree.org
Tue Sep 19 15:34:06 EDT 2006
Mark,
Mark Szidik/mlc wrote:
> Anybody know how I can search for the special character that is represented
> as ^@ in vi ? I can't seem to use the keyboard sequence ctrl-v ctrl-@ to
> produce it. BTW, what ascii character is this?
Your best bet might be to use vi to convert the file to hex using:
:%!xxd
That should tell you the hex representation of the character. You can
search on that and then you can convert the hex back to standard ascii:
:%!xxd -r
Cheers,
Daniel Hedlund
daniel at digitree.org
More information about the linux-user
mailing list