manual page distributed with 4.1BSD
[unix-history] / usr / src / usr.bin / strings / strings.1
CommitLineData
3a1a282a
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)strings.1 4.1 (Berkeley) %G%
6.\"
7.TH STRINGS 1 2/24/79
8.UC
9.SH NAME
10strings \- find the printable strings in a object, or other binary, file
11.SH SYNOPSIS
12.B strings
13[
14.B \-
15] [
16.B \-o
17] [
18\fB\-\fInumber\fR
19] file ...
20.SH DESCRIPTION
21.I Strings
22looks for ascii strings in a binary file.
23A string is any sequence of 4 or more printing characters ending with
24a newline or a null.
25Unless the
26.B \-
27flag is given,
28.I strings
29only looks in the initialized data space of object files.
30If the
31.B \-o
32flag is given, then each string is preceded by its offset in the
33file (in octal).
34If the
35\fB\-\fInumber\fR
36flag is given then number is used as the minimum string length
37rather than 4.
38.PP
39.I Strings
40is useful for identifying random object files and many other things.
41.SH "SEE ALSO"
42od(1)
43.SH BUGS
44The algorithm for identifying strings is extremely primitive