BSD 2 development
[unix-history] / man / strings.u
CommitLineData
1aa6c056
BJ
1.TH STRINGS UCB 2/24/79 UCB
2.SH NAME
3strings \- find the printable strings in a object, or other binary, file
4.SH SYNOPSIS
5.B strings
6[
7.B \-
8] [
9.B \-o
10] [
11\fB\-\fInumber\fR
12] file ...
13.SH DESCRIPTION
14.I Strings
15looks for ascii strings in a binary file.
16A string is any sequence of 4 or more printing characters ending with
17a newline or a null.
18Unless the
19.B \-
20flag is given,
21.I strings
22only looks in the initialized data space of object files.
23If the
24.B \-o
25flag is given, then each string is preceded by its offset in the
26file (in octal).
27If the
28\fB\-\fInumber\fR
29flag is given then number is used as the minimum string length
30rather than 4.
31.PP
32.I Strings
33is useful for identifying random object files and many other things.
34.SH "SEE ALSO"
35od(1)
36.SH AUTHOR
37Bill Joy
38.SH BUGS
39The algorithm for identifying strings is extremely primitive