Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] binary search of binary data



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

Home Page Mailing List Linux and Japan TLUG Members Links