bgrep icon indicating copy to clipboard operation
bgrep copied to clipboard

Binary Grep

Results 8 bgrep issues
Sort by recently updated
recently updated
newest added

E.g.: ``` bgrep -i 4 0102030405060708 ``` would invert endianess and be equivalent to: ``` bgrep 00403020108070605 ``` The magic case `-i 0` could invert the entire string to: `0807060504030201`.

I have to use the gcc -D_FILE_OFFSET_BITS=64 flag to make it work for big files on a 32 bit machine. I also replaced printf("%s: %08llx\n", filename, pos); by printf("%s: %016llx\n",...

...th streams of random data (produced with 200MiB/s rate) on stdin this was not sufficient. This version of program works with 64-bit integers and supports filesizes upto 2^64 bytes (16EiB...

$ ./bgrep -B 23 Segmentation fault One parameter file is missing, and a Segmentation fault occurs. Since char *h = argv[1]; argv[1] does not exist. Adding a check is a...

Would be better to just start from 0 instead in that case: ``` printf '\x01\x02\x03' > tmp ``` Good: ``` bgrep -B2 03 tmp ``` output: ``` tmp: 00000002 \x01\x02...

This might be one of my new absolute favorite tools. It's fantastic. Would you consider adding a `--json` flag that outputs JSONL (newline-delimited JSON) with `file` and `offset` fields? Would...