Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to find some text inside binary files. Is it possible to do in Finder (it skips binary even if I set up "All kinds" of file types)? Otherwise I would be thankful for utility that can do it.

PS: I need to search among many files in directory.

share|improve this question
add comment

3 Answers

You should use the strings application in the Terminal.

strings filename(s) | grep text_to_search_for

From Wikipedia:

In computer software, strings is a program in Unix-like operating systems that finds and prints text strings embedded in binary files such as executables.

I'm not aware of any way to use Finder to search for text in binary files.

share|improve this answer
add comment
up vote 1 down vote accepted

After some digging on Google I found EasyFind.app. This app can search in selected or all file types.

share|improve this answer
add comment

You can try Insider for Mac.

share|improve this answer
1  
Welcome to Ask Different! Can you expand on this answer? What does this app do and why do you like it? Please take a look at the FAQs for more info. Thanks. –  Nathan Greenstein Dec 20 '11 at 18:03
    
15$ on Appstore, EasyFind is free :) –  brigadir Dec 21 '11 at 7:04
add comment

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.