
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] binary search of binary data
- Date: Sun, 26 Dec 2004 05:59:36 +0900
- From: Edward Wright <edw@example.com>
- Subject: [tlug] binary search of binary data
- User-agent: Mutt/1.4i
Feels like there should be a simple answer to this, but it eludes me.
I want to search for a sequence of bytes in a binary file - kinda
like "grep -a -b" with a binary input "string". I've even tried
grep -a -b ` perl -e 'print "\xec\xa5\xc1\x01"'` <input file>
which works sometimes - depending on the hex values, I suppose.
Can anyone point me in the right direction?
Much thanks,
Ed
Home |
Main Index |
Thread Index