pjankows blog
Random technical notes I publish here with hope these may be useful.
Showing posts with label
grep
.
Show all posts
Showing posts with label
grep
.
Show all posts
Thursday, February 9, 2012
How to grep a binary file
Usually grep is used while working with text files. It can also be used with binary files. However a line or line number is probably note very useful in this case.
To get the byte offset you can use:
grep -boa "$PATTERN"
Older Posts
Home
Subscribe to:
Posts (Atom)