i'd love something like grep but specifically for binary files. sometimes i can get away with piping xxd but i can't exactly, say, search for functions using some known set of registers in MIPS binaries.
@dd86k ooh, you got an example?
@dd86k oh, but i'm searching for actual binary data, not encoded strings…
@notwa
well darn
@notwa well funny enough I did make ddhx but it's an interactive kinda thing
@notwa
to substitute stuff I'd use
perl -pi -e ‘s/a/b/g’ # a being in and b thing to replace
but you can use grep -a to find text in binary stuff or strings (part of gnu bin utils) and grep from strings