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

Eric F Crist ecrist at secure-computing.net
Tue Sep 2 13:37:58 PDT 2008


Dev toolkit.
---
Eric F Crist
Secure Computing Networks  

-----Original Message-----
From: Kevin Stevens <groups at pursued-with.net>

Date: Tue, 2 Sep 2008 12:53:09 
To: A place to discuss Mac OS X from the perspective of the command line.<x-unix at listserver.themacintoshguy.com>
Subject: Re: [X-Unix] How does one find a string in a binary file, etc.?




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
_______________________________________________
X-Unix mailing list
X-Unix at listserver.themacintoshguy.com
http://listserver.themacintoshguy.com/mailman/listinfo/x-unix


More information about the X-Unix mailing list