* cfg-ml-com.in (z8k-*-coff): Add 'std' multilib build.
[deliverable/binutils-gdb.git] / binutils / strings.1
CommitLineData
b26ac613
DM
1.\" Copyright (c) 1993 Free Software Foundation
2.\" See section COPYING for conditions for redistribution
80f31fbb 3.TH strings 1 "25 June 1993" "cygnus support" "GNU Development Tools"
b26ac613
DM
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
938fa52b 11strings \- print the strings of printable characters in files
b26ac613
DM
12
13.SH SYNOPSIS
14.hy 0
15.na
16.TP
17.B strings
18.RB "[\|" \-a | \-\c
19.RB | \-\-all "\|]"
20.RB "[\|" \-f | \-\-print\-file\-name "\|]"
21.RB "[\|" \-o "\|]"
22.RB "[\|" \-\-help "\|]"
23.RB "[\|" \-v | \-\-version "\|]"
24.RB "[\|" \-n
25.I min\-len\c
26.RI | \-min\-len\c
27.RB | "\-\-bytes="\c
28.I min\-len\c
29\&\|]
30.RB "[\|" \-t
31.I {o,x,d}\c
eae04238 32.RB "[\|" "\-\-target=\fIbfdname" "\|]"
b26ac613
DM
33.RB | "\-\-radix="\c
34.I {o,x,d}\c
35\&\|]
36.I file\c
37.ad b
38.hy 1
39.SH DESCRIPTION
40For each
41.I file
42given, GNU \c
43.B strings
44prints the printable character sequences that are at least 4
45characters long (or the number given with the options below) and are
46followed by a NUL or newline character. By default, it only prints
5f057047
ILT
47the strings from the initialized and loaded sections of object files;
48for other types of files, it prints the strings from the whole file.
b26ac613
DM
49
50.PP
51.B strings
52is mainly useful for determining the contents of non-text files.
53
54.SH OPTIONS
55The long and short forms of options, shown here as alternatives, are
56equivalent.
57
58.TP
59.B \-a
60.TP
61.B \-\-all
62.TP
63.B \-
5f057047
ILT
64Do not scan only the initialized and loaded sections of object files;
65scan the whole files.
b26ac613
DM
66
67.TP
68.B \-f
69.TP
70.B \-\-print\-file\-name
71Print the name of the file before each string.
72
73.TP
74.B \-\-help
75Print a summary of the options to
76.B strings
77on the standard output and exit.
78
79.TP
80.B \-v
81.TP
82.B \-\-version
83Print the version number
84of
85.B strings
86on the standard output and exit.
87
88.TP
89.B "\-n \fImin\-len\fP"
90.B "\-\fImin\-len\fP"
91.TP
92.B "\-bytes=\fImin\-len\fP"
93Print sequences of characters that are at least
94.I min\-len
95characters long, instead of the default 4.
96
97.TP
98.BR "\-t " {o,x,d}
99.TP
100.BR "\-\-radix=" {o,x,d}
101Print the offset within the file before each string. The single
102character argument specifies the radix of the offset\(emoctal,
103hexadecimal, or decimal.
104
eae04238
DM
105.TP
106.BI "\-\-target=" "bfdname"\c
107\&
108Specify an object code format other than your system's default format.
109See
110.BR objdump ( 1 ),
111for information on listing available formats.
112
b26ac613
DM
113.TP
114.B \-o
115Like
116.BR "\-t o" .
117
118.PP
119
120.SH "SEE ALSO"
121.RB "`\|" binutils "\|'"
122entry in
123.B
124info\c
125\&;
126.I
127The GNU Binary Utilities\c
128\&, Roland H. Pesch (October 1991);
129.BR ar ( 1 ),
130.BR nm ( 1 ),
131.BR objdump ( 1 ),
132.BR ranlib ( 1 ).
133
134
135.SH COPYING
136Copyright (c) 1993 Free Software Foundation, Inc.
137.PP
138Permission is granted to make and distribute verbatim copies of
139this manual provided the copyright notice and this permission notice
140are preserved on all copies.
141.PP
142Permission is granted to copy and distribute modified versions of this
143manual under the conditions for verbatim copying, provided that the
144entire resulting derived work is distributed under the terms of a
145permission notice identical to this one.
146.PP
147Permission is granted to copy and distribute translations of this
148manual into another language, under the above conditions for modified
149versions, except that this permission notice may be included in
150translations approved by the Free Software Foundation instead of in
151the original English.
This page took 0.086221 seconds and 4 git commands to generate.