Skip to content

How to grep a string in a binary file?

How to grep a string in a binary file?

Answer:

Assume you have a binary file "foo.bin", you can combine strings with the grep command.

strings foo.bin | grep bar

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. What are the difference between CHAR BINARY and BINARY type in MySQL
  2. Change the maximum allowed binary log file size in MySQL
  3. Count the number of matching lines from grep
  4. How to replace a string in a file using Perl
  5. MySQL binary log files take all of my disk space

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*