xref: /original-bsd/usr.bin/strings/strings.1 (revision bff54947)
Copyright (c) 1980, 1990 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)strings.1 6.7 (Berkeley) 06/24/90

STRINGS 1 "%Q"
C
NAME
strings - find the printable strings in a file
SYNOPSIS
strings [ -ao ] [ -n number ] [ file ... ]
DESCRIPTION
String displays the sequences of printable characters in each of the specified files, or in the standard input, by default. By default, a sequence must be at least four characters in length before being displayed.

The options are as follows:

-a By default, strings only searches the initialized data space of object files. The -a option causes strings to search the entire object file.

-n Specifies the minimum number of characters in a sequence to be number , instead of four.

-o The -o option causes each string to be preceded by its decimal offset in the file.

Strings is useful for identifying random binaries, among other things.

"SEE ALSO"
hexdump(1)
BUGS
The algorithm for identifying strings is extremely primitive.