Open cirosantilli opened 7 years ago
I think searching for numbers is an intriguing enough use-case to justify special treatment, however such an "-i" option has corner cases (non-multiple search string length) that makes the behavior a bit non-obvious.
I wonder if we should instead support something like "-i
bgrep -iI 0x12345 -iI 0x5678
but also
bgrep -iI 0x12345 08070605
etc.
E.g.:
would invert endianess and be equivalent to:
The magic case
-i 0
could invert the entire string to:0807060504030201
.