[X-Unix] How does one find a string in a binary file, etc.?

Kevin Stevens groups at pursued-with.net
Tue Sep 2 12:53:09 PDT 2008



On Tue, 2 Sep 2008, David Ledger wrote:

> At 09:06 -0700 2/9/08, Aaron wrote:
>>> Try "man strings".
>> 
>> That gets a negative result. "man string" turns up a bunch of C 
>> functions. "apropos string" turns up lots and lots of C functions and a 
>> few other useless items. Am I missing something?
>
> My Leopard is also missing a man page for 'strings'. For other versions 
> of strings
>  strings -a file searches the entire binary. If it thinks it's an app, 
> only the data segment is searched.
>  strings -t x file shows the offset where the string is found. 'x' can 
> be 'd' for decimal, 'o' for octal, 'x' for hex.
>
> Searching with perl is another possibility.
>
> David

Hmm, my 10.5.4 box has the man page, dated 2006.  It was an upgrade from 
10.4, I wonder if I inherited it from there, or maybe from the developer 
toolkit?

KeS


More information about the X-Unix mailing list