Merge from vendor branch OPENSSH:
[dragonfly.git] / contrib / binutils / binutils / doc / strings.1
1 .\" Automatically generated by Pod::Man v1.3, Pod::Parser v1.13
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24
25 .fi
26 ..
27 .\" Set up some character translations and predefined strings.  \*(-- will
28 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
29 .\" double quote, and \*(R" will give a right double quote.  | will give a
30 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
31 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
32 .\" expand to `' in nroff, nothing in troff, for use with C<>.
33 .tr \(*W-|\(bv\*(Tr
34 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
35 .ie n \{\
36 .    ds -- \(*W-
37 .    ds PI pi
38 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
39 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
40 .    ds L" ""
41 .    ds R" ""
42 .    ds C` ""
43 .    ds C' ""
44 'br\}
45 .el\{\
46 .    ds -- \|\(em\|
47 .    ds PI \(*p
48 .    ds L" ``
49 .    ds R" ''
50 'br\}
51 .\"
52 .\" If the F register is turned on, we'll generate index entries on stderr for
53 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
54 .\" entries marked with X<> in POD.  Of course, you'll have to process the
55 .\" output yourself in some meaningful fashion.
56 .if \nF \{\
57 .    de IX
58 .    tm Index:\\$1\t\\n%\t"\\$2"
59 ..
60 .    nr % 0
61 .    rr F
62 .\}
63 .\"
64 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
65 .\" way too many mistakes in technical documents.
66 .hy 0
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "STRINGS 1"
132 .TH STRINGS 1 "2002-05-14" "binutils-2.12.1" "GNU Development Tools"
133 .UC
134 .SH "NAME"
135 strings \- print the strings of printable characters in files.
136 .SH "SYNOPSIS"
137 .IX Header "SYNOPSIS"
138 strings [\fB\-afov\fR] [\fB\-\fR\fImin-len\fR]
139         [\fB\-n\fR \fImin-len\fR] [\fB\-\-bytes=\fR\fImin-len\fR]
140         [\fB\-t\fR \fIradix\fR] [\fB\-\-radix=\fR\fIradix\fR]
141         [\fB\-e\fR \fIencoding\fR] [\fB\-\-encoding=\fR\fIencoding\fR]
142         [\fB\-\fR] [\fB\-\-all\fR] [\fB\-\-print\-file\-name\fR]
143         [\fB\-\-target=\fR\fIbfdname\fR]
144         [\fB\-\-help\fR] [\fB\-\-version\fR] \fIfile\fR...
145 .SH "DESCRIPTION"
146 .IX Header "DESCRIPTION"
147 For each \fIfile\fR given, \s-1GNU\s0 \fBstrings\fR prints the printable
148 character sequences that are at least 4 characters long (or the number
149 given with the options below) and are followed by an unprintable
150 character.  By default, it only prints the strings from the initialized
151 and loaded sections of object files; for other types of files, it prints
152 the strings from the whole file.
153 .PP
154 \&\fBstrings\fR is mainly useful for determining the contents of non-text
155 files.
156 .SH "OPTIONS"
157 .IX Header "OPTIONS"
158 .IP "\fB\-a\fR" 4
159 .IX Item "-a"
160 .PD 0
161 .IP "\fB\-\-all\fR" 4
162 .IX Item "--all"
163 .IP "\fB\-\fR" 4
164 .IX Item "-"
165 .PD
166 Do not scan only the initialized and loaded sections of object files;
167 scan the whole files.
168 .IP "\fB\-f\fR" 4
169 .IX Item "-f"
170 .PD 0
171 .IP "\fB\-\-print\-file\-name\fR" 4
172 .IX Item "--print-file-name"
173 .PD
174 Print the name of the file before each string.
175 .IP "\fB\-\-help\fR" 4
176 .IX Item "--help"
177 Print a summary of the program usage on the standard output and exit.
178 .IP "\fB\-\fR\fImin-len\fR" 4
179 .IX Item "-min-len"
180 .PD 0
181 .IP "\fB\-n\fR \fImin-len\fR" 4
182 .IX Item "-n min-len"
183 .IP "\fB\-\-bytes=\fR\fImin-len\fR" 4
184 .IX Item "--bytes=min-len"
185 .PD
186 Print sequences of characters that are at least \fImin-len\fR characters
187 long, instead of the default 4.
188 .IP "\fB\-o\fR" 4
189 .IX Item "-o"
190 Like \fB\-t o\fR.  Some other versions of \fBstrings\fR have \fB\-o\fR
191 act like \fB\-t d\fR instead.  Since we can not be compatible with both
192 ways, we simply chose one.
193 .IP "\fB\-t\fR \fIradix\fR" 4
194 .IX Item "-t radix"
195 .PD 0
196 .IP "\fB\-\-radix=\fR\fIradix\fR" 4
197 .IX Item "--radix=radix"
198 .PD
199 Print the offset within the file before each string.  The single
200 character argument specifies the radix of the offset\-\-\-\fBo\fR for
201 octal, \fBx\fR for hexadecimal, or \fBd\fR for decimal.
202 .IP "\fB\-e\fR \fIencoding\fR" 4
203 .IX Item "-e encoding"
204 .PD 0
205 .IP "\fB\-\-encoding=\fR\fIencoding\fR" 4
206 .IX Item "--encoding=encoding"
207 .PD
208 Select the character encoding of the strings that are to be found.
209 Possible values for \fIencoding\fR are: \fBs\fR = single-byte
210 characters (\s-1ASCII\s0, \s-1ISO\s0 8859, etc., default), \fBb\fR = 16\-bit
211 Bigendian, \fBl\fR = 16\-bit Littleendian, \fBB\fR = 32\-bit Bigendian,
212 \&\fBL\fR = 32\-bit Littleendian. Useful for finding wide character
213 strings.
214 .IP "\fB\-\-target=\fR\fIbfdname\fR" 4
215 .IX Item "--target=bfdname"
216 Specify an object code format other than your system's default format.
217 .IP "\fB\-v\fR" 4
218 .IX Item "-v"
219 .PD 0
220 .IP "\fB\-\-version\fR" 4
221 .IX Item "--version"
222 .PD
223 Print the program version number on the standard output and exit.
224 .SH "SEE ALSO"
225 .IX Header "SEE ALSO"
226 \&\fIar\fR\|(1), \fInm\fR\|(1), \fIobjdump\fR\|(1), \fIranlib\fR\|(1), \fIreadelf\fR\|(1)
227 and the Info entries for \fIbinutils\fR.
228 .SH "COPYRIGHT"
229 .IX Header "COPYRIGHT"
230 Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002 Free Software Foundation, Inc.
231 .PP
232 Permission is granted to copy, distribute and/or modify this document
233 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1
234 or any later version published by the Free Software Foundation;
235 with no Invariant Sections, with no Front-Cover Texts, and with no
236 Back-Cover Texts.  A copy of the license is included in the
237 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".