OT: grep for hex characters

Joachim Backes backes at rhrk.uni-kl.de
Tue Jul 19 12:49:02 UTC 2005


On Tue, 2005-07-19 at 13:36 +0100, fergus wrote:
> 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

Using the command "od"?
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
-- 
Best regards

Joachim Backes <backes at rhrk.uni-kl.de>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html




More information about the fedora-list mailing list