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

John Baltutis baltwo at san.rr.com
Tue Sep 2 15:17:45 PDT 2008


On 9/2/08,  David Ledger <dledger at ivdcs.demon.co.uk> wrote:
>>>From: "B. Kuestner" <kuestner at macnews.de>
>>>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'.

Then, you have a hosed installation. On my 10.5.4 installation, man strings
returns:

"STRINGS(1)
STRINGS(1)
NAME strings - find the printable strings in a object, or other binary, file
SYNOPSIS strings [ - ] [ -a ] [ -o ] [ -t format ] [ -number ] [ -n number ]
[--] [file ...]
DESCRIPTION Strings  looks  for  ASCII strings in a binary file or standard
input.  Strings is useful for identifying random object files and many other
things.  A string is any sequence of 4 (the default) or more printing
characters  ending  with  a newline  or  a  null.   Unless  the  -  flag  is
given,  strings  looks in all sections of the object files except the
(__TEXT,__text) section.  If no files are specified standard input is read.
etc."


More information about the X-Unix mailing list