Say I have generated the following binary file:
# generate file: python -c \'import sys;[sys.stdout.write(chr(i)) for i in (0,0,0,0,2,4,6,8,0,1,3,0,5,20)]\'
What about grep -a? Not sure how it works on truly binary files but it works well on text files that the OS thinks is binary.
grep -a