Search for text in binary files

Contributor Icon Contributed by qmchenry Date Icon September 16, 2003  
Tag Icon Tagged: UNIX


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

Previous recipe | Next recipe |
 
blog comments powered by Disqus