I run
grep -b --byte-offset 'EXTH' Agent_of_Change.mobi
but I only get "Binary file Agent_of_Change.mobi matches".
How can I get the bytes offset instead?
grep
I run
grep -b --byte-offset 'EXTH' Agent_of_Change.mobi
but I only get "Binary file Agent_of_Change.mobi matches".
How can I get the bytes offset instead?
Best Answer
grep
would, by default, only returns matches for binary files.You would need to tell
grep
to treat binary files as text.However,
grep
warns you of the possible consequences: