strings(1)
_________________________________________________________________
strings Command
find the printable strings in an object or other binary file
_________________________________________________________________
SYNTAX
strings [ -o ] [ -number ] file ...
DESCRIPTION
Strings looks for ascii strings in a binary file. A string is
any sequence of 4 or more printing characters ending with a
newline or a null. If the -o flag is given, then each string is
preceded by its offset in the file (in octal). If the -number
flag is given then number is used as the minimum string length
rather than 4.
Strings is useful for identifying random object files and many
other things.
_________________________________________________________________
EXAMPLES
$ cat file.c
main()
{
printf("hello world0);
}
The cat command lists the contents of file.c.
$ strings file.o
file
I.INIT
C?INIT2
printf
C.INIT
hello world
main
This command lists all strings (with 4 or more characters)
contained in the object file, file.o.
_________________________________________________________________
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
strings(1)
SEE ALSO
od(1)
BUGS
The algorithm for identifying strings is extremely primitive.
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)