OT: grep for hex characters

fergus fergus at bonhard.uklinux.net
Tue Jul 19 13:24:47 UTC 2005


Can anybody tell me how in general to grep files for hex characters 00 to ff
inclusive? I can do the 26 characters 01 to 1a (being ^A to ^Z respectively)
and also 20 to 7e (being <space>, punct, 0-9, A-Z, more punct, a-z, more
punct) but am stuck for everything else: 00, 1b to 1f and 7f to ff. Dunno, I
thought it might be something like

	find . | xargs grep -l "\x8f"

but it's obviously not that. Thanks. (Maybe I can use sed just to find
stuff, not replace it?)

Fergus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050719/1be5bb32/attachment-0001.htm>


More information about the fedora-list mailing list