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

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)strings.1 6.5 (Berkeley) 10/21/88

STRINGS 1 ""
C
NAME
strings - find the printable strings in a file
SYNOPSIS
strings [ -ao ] [ -number ] [ file ... ]
DESCRIPTION
Strings looks for ascii strings in each of the specified files, or from the standard input. A string is any sequence of 4 or more printing characters. Unless the -a flag is given, strings only looks in the initialized data space of object files. If the -o flag is given, then each string is preceded by its decimal offset in the file. 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.

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