I have been using this so far
system 'strings binary-file.dmp | grep search_string'
Is there something more “Ruby like”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is my quick-and-dirty strings.rb:
This is not a work of art or anything – it only works in straight US-ASCII. The regex bascially means “all groups of printable US-ASCII characters of size 4 charaters or more”. This is essentially what
strings(1)does.