BSD 4_3_Reno development
[unix-history] / .ref-fdb8e4aac282b72d4670aa3a26d9bba07afc7e6f / usr / src / usr.bin / strings / strings.1
CommitLineData
daacd5f0 1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
e316c02c 2.\" All rights reserved.
3a1a282a 3.\"
daacd5f0 4.\" %sccs.include.redist.man%
e316c02c 5.\"
daacd5f0 6.\" @(#)strings.1 6.7 (Berkeley) %G%
3a1a282a 7.\"
daacd5f0 8.TH STRINGS 1 "%Q"
3a1a282a
KM
9.UC
10.SH NAME
e8d9c970 11strings \- find the printable strings in a file
3a1a282a 12.SH SYNOPSIS
61539330
KB
13.ft B
14strings [ \-ao ] [ \-n number ] [ file ... ]
15.ft R
3a1a282a 16.SH DESCRIPTION
61539330
KB
17.I String
18displays the sequences of printable characters in each of the specified
19files, or in the standard input, by default.
20By default, a sequence must be at least four characters in length
21before being displayed.
3a1a282a 22.PP
61539330
KB
23The options are as follows:
24.TP
25\-a
26By default,
27.I strings
28only searches the initialized data space of object files.
29The
30.I \-a
31option causes
32.I strings
33to search the entire object file.
34.TP
35\-n
36Specifies the minimum number of characters in a sequence to be
37.IR number ,
38instead of four.
39.TP
40\-o
41The
42.I \-o
43option causes each string to be preceded by its decimal offset in the
44file.
45.PP
46.I Strings
47is useful for identifying random binaries, among other things.
3a1a282a 48.SH "SEE ALSO"
61539330 49hexdump(1)
3a1a282a 50.SH BUGS
570d12e7 51The algorithm for identifying strings is extremely primitive.