[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Q: regex, binary characters, vi, and grep
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Q: regex, binary characters, vi, and grep
- From: OpenBSD <openbsd_(_at_)_shopip_(_dot_)_com>
- Date: Mon, 18 Oct 2004 14:16:45 -0700 (PDT)
I am having trouble searching for "binary" (characters 0x80 - 0xff)
1. How does one enter such characters directly from the keyboard? All IBM
PC BIOS' support the (excellent) system of alt-numpad to enter any
possible character code. OpenBSD ignores the BIOS, however. Is there
another way to do this?
2. Grep does not seem to work with \xnn or \\xnn sequences. printf does,
but I can't make grep use them. Even piping into grep was useless. So were
various quotes, escapes, etc. So was egrep.
3. How can I search for these characters in vi? If there was a way to
search for the string in the buffer, that would work too. If there was
such a way.