]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/strings.1
A mostly cosmetic tidy up of warnings and error message reporting.
[thirdparty/binutils-gdb.git] / binutils / strings.1
CommitLineData
37cc8ec1 1.\" Copyright (c) 1993, 94, 95, 2000 Free Software Foundation
252b5132 2.\" See section COPYING for conditions for redistribution
37cc8ec1 3.TH strings 1 "09 March 2000" "cygnus support" "GNU Development Tools"
252b5132
RH
4.de BP
5.sp
6.ti \-.2i
7\(**
8..
9
10.SH NAME
11strings \- print the strings of printable characters in files
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
32.RB "[\|" "\-\-target=\fIbfdname" "\|]"
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 an unprintable character. By default, it only prints the
47strings from the initialized and loaded sections of object files; for
48other types of files, it prints the strings from the whole file.
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 \-
64Do not scan only the initialized and loaded sections of object files;
65scan the whole files.
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.TP
91.B "\-\fImin\-len\fP"
92.TP
fd5ccd47 93.B "\-\-bytes=\fImin\-len\fP"
252b5132
RH
94Print sequences of characters that are at least
95.I min\-len
96characters long, instead of the default 4.
97
98.TP
99.BR "\-t " {o,x,d}
100.TP
101.BR "\-\-radix=" {o,x,d}
102Print the offset within the file before each string. The single
103character argument specifies the radix of the offset\(emoctal,
104hexadecimal, or decimal.
105
106.TP
107.BI "\-\-target=" "bfdname"
108Specify an object code format other than your system's default format.
109See
110.BR objdump ( 1 ),
111for information on listing available formats.
112
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.