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