Search for text in binary files
Posted September 16, 2003 by Quinn McHenry in UNIX
Unix commands and examples for finding text in binary files.
To extract all text strings from a file, use:
strings filename
To search for all occurrences of the text “maybe” in the binary file filename use:
strings filename | grep maybe
About Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry
View more articles by Quinn McHenry
The Conversation
Follow the reactions below and share your own thoughts.