Search for text in binary files

Home -> UNIX

7616 views

From the computer of: qmchenry (339 recipes)
Created: Sep 16, 2003     Updated: Sep 22, 2003


0 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Basic FTP commands
  Search for text in vi or vim
  Build from RedHat source package (.src)
  Remove ^M characters at end of lines in vi
  Sendmail debugging: watch queue processing
  Unix/Linux: Easily find or search files or directories
  CVS: Create a new project
  Limit the depth of search using find
  Copy and paste text with vi or vim
  Update the man page indexes

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.