tmbinc / bgrep

Binary Grep

Home Page:http://debugmo.de/2009/04/bgrep-a-binary-grep/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Feel free to modify, branch, fork, improve. Re-licenses as BSD.

To install:

curl -L 'https://github.com/tmbinc/bgrep/raw/master/bgrep.c' | gcc -O2 -x c -o $HOME/.local/bin/bgrep -

usage:

bgrep [-B bytes] [-A bytes] [-C bytes] <hex> [<path> [...]]

-B: bytes_before
-A: bytes_after
-C: bytes_before and bytes_after

About

Binary Grep

http://debugmo.de/2009/04/bgrep-a-binary-grep/


Languages

Language:C 78.7%Language:Shell 10.3%Language:Python 9.1%Language:Makefile 1.9%