Binary grep on Linux?

后端 未结 6 1890
你的背包
你的背包 2020-12-13 18:53

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)]\'          


        
6条回答
  •  感动是毒
    2020-12-13 19:19

    Someone else appears to have been similarly frustrated and wrote their own tool to do it (or at least something similar): bgrep.

提交回复
热议问题