I fixed a reference through zero bug. -rpc
[unix-history] / usr / src / usr.bin / strings / strings.1
CommitLineData
e316c02c
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
3a1a282a 3.\"
e316c02c
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)strings.1 6.5 (Berkeley) %G%
3a1a282a 17.\"
fdb732b2 18.TH STRINGS 1 ""
3a1a282a
KM
19.UC
20.SH NAME
e8d9c970 21strings \- find the printable strings in a file
3a1a282a
KM
22.SH SYNOPSIS
23.B strings
24[
e8d9c970 25.B \-ao
3a1a282a
KM
26] [
27\fB\-\fInumber\fR
e8d9c970 28] [ file ... ]
3a1a282a 29.SH DESCRIPTION
e8d9c970
KB
30\fIStrings\fP looks for ascii strings in each of the specified files,
31or from the standard input. A string is any sequence of 4 or more printing
32characters. Unless the \fB-a\fP flag is given, \fIstrings\fP only looks
33in the initialized data space of object files. If the \fB-o\fP flag is
c67c9d58
KB
34given, then each string is preceded by its decimal offset in the file.
35If the \fB-\fInumber\fR flag is given, then \fInumber\fP is used as the
36minimum string length rather than 4.
3a1a282a 37.PP
e8d9c970
KB
38\fIStrings\fP is useful for identifying random object files and
39many other things.
3a1a282a
KM
40.SH "SEE ALSO"
41od(1)
42.SH BUGS
570d12e7 43The algorithm for identifying strings is extremely primitive.