[X-Unix] How does one find a string in a binary file, etc.?
Eric F Crist
ecrist at secure-computing.net
Tue Sep 2 15:05:40 PDT 2008
From my Tiger -> Leopard MBP 15 from 2006 (w/Dev Toolkit):
foobeans at beans:~/> man strings
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 identify-
ing 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 stan-
dard input is read.
On Sep 2, 2008, at 3:46 PM, David Ledger wrote:
> At 12:53 -0700 2/9/08, Kevin Stevens wrote:
>> 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
>>
>> 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
>
> Odd. My Leopard mini, that was installed with a fresh install when
> nearly new, has it, but my Panther-Tiger-Leopard Updated 17"PB
> doesn't. Both have the Dev Toolkit installed.
> Oh-well...
>
> David
>
> --
> David Ledger - Freelance Unix Sysadmin in the UK.
> HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
> david.ledger at ivdcs.co.uk
> www.ivdcs.co.uk
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
---
Eric Crist
More information about the X-Unix
mailing list