bgrep - A Binary Grep

I’m terribly annoyed by the fact that grep(1) cannot look for binary strings. I’m even more annoyed by the fact that a simple search for “binary grep” doesn’t yield a tool which could do that. So I wrote one.
Have fun: bgrep.c. Usage is simple: Just give it a hex string (without spaces) as first argument, and possibly use ‘??’ to mask out bytes. It will print matching files and the offset.

UPDATE: I’ve relocated bgrep.c to github. Feel free to send pull-requests!