Add GNU Free Documentation License
[deliverable/binutils-gdb.git] / binutils / strings.1
1 .\" Copyright (c) 1993, 94, 95, 2000 Free Software Foundation
2 .\" See section COPYING for conditions for redistribution
3 .TH strings 1 "09 March 2000" "Free Software Foundation" "GNU Development Tools"
4 .de BP
5 .sp
6 .ti \-.2i
7 \(**
8 ..
9
10 .SH NAME
11 strings \- 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
40 For each
41 .I file
42 given, GNU \c
43 .B strings
44 prints the printable character sequences that are at least 4
45 characters long (or the number given with the options below) and are
46 followed by an unprintable character. By default, it only prints the
47 strings from the initialized and loaded sections of object files; for
48 other types of files, it prints the strings from the whole file.
49
50 .PP
51 .B strings
52 is mainly useful for determining the contents of non-text files.
53
54 .SH OPTIONS
55 The long and short forms of options, shown here as alternatives, are
56 equivalent.
57
58 .TP
59 .B \-a
60 .TP
61 .B \-\-all
62 .TP
63 .B \-
64 Do not scan only the initialized and loaded sections of object files;
65 scan the whole files.
66
67 .TP
68 .B \-f
69 .TP
70 .B \-\-print\-file\-name
71 Print the name of the file before each string.
72
73 .TP
74 .B \-\-help
75 Print a summary of the options to
76 .B strings
77 on the standard output and exit.
78
79 .TP
80 .B \-v
81 .TP
82 .B \-\-version
83 Print the version number
84 of
85 .B strings
86 on the standard output and exit.
87
88 .TP
89 .B "\-n \fImin\-len\fP"
90 .TP
91 .B "\-\fImin\-len\fP"
92 .TP
93 .B "\-\-bytes=\fImin\-len\fP"
94 Print sequences of characters that are at least
95 .I min\-len
96 characters long, instead of the default 4.
97
98 .TP
99 .BR "\-t " {o,x,d}
100 .TP
101 .BR "\-\-radix=" {o,x,d}
102 Print the offset within the file before each string. The single
103 character argument specifies the radix of the offset\(emoctal,
104 hexadecimal, or decimal.
105
106 .TP
107 .BI "\-\-target=" "bfdname"
108 Specify an object code format other than your system's default format.
109 See
110 .BR objdump ( 1 ),
111 for information on listing available formats.
112
113 .TP
114 .B \-o
115 Like
116 .BR "\-t o" .
117
118 .PP
119
120 .SH "SEE ALSO"
121 .RB "`\|" binutils "\|'"
122 entry in
123 .B
124 info\c
125 \&;
126 .I
127 The 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
136 Copyright (c) 1993, 2000 Free Software Foundation, Inc.
137 .PP
138 This document is distributed under the terms of the GNU Free
139 Documenation License. That license is described in the GNU Free
140 Documentation License section.
141
142 .SH GNU Free Documentation License
143 Version 1.1, March 2000
144
145 Copyright (C) 2000 Free Software Foundation, Inc.
146 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
147
148 Everyone is permitted to copy and distribute verbatim
149 copies of this license document, but changing it is
150 not allowed.
151 .PP
152 0. PREAMBLE
153 .PP
154 The purpose of this License is to make a manual, textbook, or other
155 written document "free" in the sense of freedom: to assure everyone
156 the effective freedom to copy and redistribute it, with or without
157 modifying it, either commercially or noncommercially. Secondarily,
158 this License preserves for the author and publisher a way to get
159 credit for their work, while not being considered responsible for
160 modifications made by others.
161 .PP
162 This License is a kind of "copyleft", which means that derivative
163 works of the document must themselves be free in the same sense. It
164 complements the GNU General Public License, which is a copyleft
165 license designed for free software.
166 .PP
167 We have designed this License in order to use it for manuals for free
168 software, because free software needs free documentation: a free
169 program should come with manuals providing the same freedoms that the
170 software does. But this License is not limited to software manuals;
171 it can be used for any textual work, regardless of subject matter or
172 whether it is published as a printed book. We recommend this License
173 principally for works whose purpose is instruction or reference.
174 .PP
175 1. APPLICABILITY AND DEFINITIONS
176 .PP
177 This License applies to any manual or other work that contains a
178 notice placed by the copyright holder saying it can be distributed
179 under the terms of this License. The "Document", below, refers to any
180 such manual or work. Any member of the public is a licensee, and is
181 addressed as "you".
182 .PP
183 A "Modified Version" of the Document means any work containing the
184 Document or a portion of it, either copied verbatim, or with
185 modifications and/or translated into another language.
186 .PP
187 A "Secondary Section" is a named appendix or a front-matter section of
188 the Document that deals exclusively with the relationship of the
189 publishers or authors of the Document to the Document's overall subject
190 (or to related matters) and contains nothing that could fall directly
191 within that overall subject. (For example, if the Document is in part a
192 textbook of mathematics, a Secondary Section may not explain any
193 mathematics.) The relationship could be a matter of historical
194 connection with the subject or with related matters, or of legal,
195 commercial, philosophical, ethical or political position regarding
196 them.
197 .PP
198 The "Invariant Sections" are certain Secondary Sections whose titles
199 are designated, as being those of Invariant Sections, in the notice
200 that says that the Document is released under this License.
201 .PP
202 The "Cover Texts" are certain short passages of text that are listed,
203 as Front-Cover Texts or Back-Cover Texts, in the notice that says that
204 the Document is released under this License.
205 .PP
206 A "Transparent" copy of the Document means a machine-readable copy,
207 represented in a format whose specification is available to the
208 general public, whose contents can be viewed and edited directly and
209 straightforwardly with generic text editors or (for images composed of
210 pixels) generic paint programs or (for drawings) some widely available
211 drawing editor, and that is suitable for input to text formatters or
212 for automatic translation to a variety of formats suitable for input
213 to text formatters. A copy made in an otherwise Transparent file
214 format whose markup has been designed to thwart or discourage
215 subsequent modification by readers is not Transparent. A copy that is
216 not "Transparent" is called "Opaque".
217 .PP
218 Examples of suitable formats for Transparent copies include plain
219 ASCII without markup, Texinfo input format, LaTeX input format, SGML
220 or XML using a publicly available DTD, and standard-conforming simple
221 HTML designed for human modification. Opaque formats include
222 PostScript, PDF, proprietary formats that can be read and edited only
223 by proprietary word processors, SGML or XML for which the DTD and/or
224 processing tools are not generally available, and the
225 machine-generated HTML produced by some word processors for output
226 purposes only.
227 .PP
228 The "Title Page" means, for a printed book, the title page itself,
229 plus such following pages as are needed to hold, legibly, the material
230 this License requires to appear in the title page. For works in
231 formats which do not have any title page as such, "Title Page" means
232 the text near the most prominent appearance of the work's title,
233 preceding the beginning of the body of the text.
234 .PP
235 2. VERBATIM COPYING
236 .PP
237 You may copy and distribute the Document in any medium, either
238 commercially or noncommercially, provided that this License, the
239 copyright notices, and the license notice saying this License applies
240 to the Document are reproduced in all copies, and that you add no other
241 conditions whatsoever to those of this License. You may not use
242 technical measures to obstruct or control the reading or further
243 copying of the copies you make or distribute. However, you may accept
244 compensation in exchange for copies. If you distribute a large enough
245 number of copies you must also follow the conditions in section 3.
246 .PP
247 You may also lend copies, under the same conditions stated above, and
248 you may publicly display copies.
249 .PP
250 3. COPYING IN QUANTITY
251 .PP
252 If you publish printed copies of the Document numbering more than 100,
253 and the Document's license notice requires Cover Texts, you must enclose
254 the copies in covers that carry, clearly and legibly, all these Cover
255 Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
256 the back cover. Both covers must also clearly and legibly identify
257 you as the publisher of these copies. The front cover must present
258 the full title with all words of the title equally prominent and
259 visible. You may add other material on the covers in addition.
260 Copying with changes limited to the covers, as long as they preserve
261 the title of the Document and satisfy these conditions, can be treated
262 as verbatim copying in other respects.
263 .PP
264 If the required texts for either cover are too voluminous to fit
265 legibly, you should put the first ones listed (as many as fit
266 reasonably) on the actual cover, and continue the rest onto adjacent
267 pages.
268 .PP
269 If you publish or distribute Opaque copies of the Document numbering
270 more than 100, you must either include a machine-readable Transparent
271 copy along with each Opaque copy, or state in or with each Opaque copy
272 a publicly-accessible computer-network location containing a complete
273 Transparent copy of the Document, free of added material, which the
274 general network-using public has access to download anonymously at no
275 charge using public-standard network protocols. If you use the latter
276 option, you must take reasonably prudent steps, when you begin
277 distribution of Opaque copies in quantity, to ensure that this
278 Transparent copy will remain thus accessible at the stated location
279 until at least one year after the last time you distribute an Opaque
280 copy (directly or through your agents or retailers) of that edition to
281 the public.
282 .PP
283 It is requested, but not required, that you contact the authors of the
284 Document well before redistributing any large number of copies, to give
285 them a chance to provide you with an updated version of the Document.
286 .PP
287 4. MODIFICATIONS
288 .PP
289 You may copy and distribute a Modified Version of the Document under
290 the conditions of sections 2 and 3 above, provided that you release
291 the Modified Version under precisely this License, with the Modified
292 Version filling the role of the Document, thus licensing distribution
293 and modification of the Modified Version to whoever possesses a copy
294 of it. In addition, you must do these things in the Modified Version:
295 .PP
296 A. Use in the Title Page (and on the covers, if any) a title distinct
297 from that of the Document, and from those of previous versions
298 (which should, if there were any, be listed in the History section
299 of the Document). You may use the same title as a previous version
300 if the original publisher of that version gives permission.
301 .PP
302 B. List on the Title Page, as authors, one or more persons or entities
303 responsible for authorship of the modifications in the Modified
304 Version, together with at least five of the principal authors of the
305 Document (all of its principal authors, if it has less than five).
306 .PP
307 C. State on the Title page the name of the publisher of the
308 Modified Version, as the publisher.
309 .PP
310 D. Preserve all the copyright notices of the Document.
311 .PP
312 E. Add an appropriate copyright notice for your modifications
313 adjacent to the other copyright notices.
314 .PP
315 F. Include, immediately after the copyright notices, a license notice
316 giving the public permission to use the Modified Version under the
317 terms of this License, in the form shown in the Addendum below.
318 Preserve in that license notice the full lists of Invariant Sections
319 and required Cover Texts given in the Document's license notice.
320 .PP
321 H. Include an unaltered copy of this License.
322 .PP
323 I. Preserve the section entitled "History", and its title, and add to
324 it an item stating at least the title, year, new authors, and
325 publisher of the Modified Version as given on the Title Page. If
326 there is no section entitled "History" in the Document, create one
327 stating the title, year, authors, and publisher of the Document as
328 given on its Title Page, then add an item describing the Modified
329 Version as stated in the previous sentence.
330 .PP
331 J. Preserve the network location, if any, given in the Document for
332 public access to a Transparent copy of the Document, and likewise
333 the network locations given in the Document for previous versions
334 it was based on. These may be placed in the "History" section.
335 You may omit a network location for a work that was published at
336 least four years before the Document itself, or if the original
337 publisher of the version it refers to gives permission.
338 .PP
339 K. In any section entitled "Acknowledgements" or "Dedications",
340 preserve the section's title, and preserve in the section all the
341 substance and tone of each of the contributor acknowledgements
342 and/or dedications given therein.
343 .PP
344 L. Preserve all the Invariant Sections of the Document,
345 unaltered in their text and in their titles. Section numbers
346 or the equivalent are not considered part of the section titles.
347 .PP
348 M. Delete any section entitled "Endorsements". Such a section
349 may not be included in the Modified Version.
350 .PP
351 N. Do not retitle any existing section as "Endorsements"
352 or to conflict in title with any Invariant Section.
353 .PP
354 If the Modified Version includes new front-matter sections or
355 appendices that qualify as Secondary Sections and contain no material
356 copied from the Document, you may at your option designate some or all
357 of these sections as invariant. To do this, add their titles to the
358 list of Invariant Sections in the Modified Version's license notice.
359 These titles must be distinct from any other section titles.
360 .PP
361 You may add a section entitled "Endorsements", provided it contains
362 nothing but endorsements of your Modified Version by various
363 parties--for example, statements of peer review or that the text has
364 been approved by an organization as the authoritative definition of a
365 standard.
366 .PP
367 You may add a passage of up to five words as a Front-Cover Text, and a
368 passage of up to 25 words as a Back-Cover Text, to the end of the list
369 of Cover Texts in the Modified Version. Only one passage of
370 Front-Cover Text and one of Back-Cover Text may be added by (or
371 through arrangements made by) any one entity. If the Document already
372 includes a cover text for the same cover, previously added by you or
373 by arrangement made by the same entity you are acting on behalf of,
374 you may not add another; but you may replace the old one, on explicit
375 permission from the previous publisher that added the old one.
376 .PP
377 The author(s) and publisher(s) of the Document do not by this License
378 give permission to use their names for publicity for or to assert or
379 imply endorsement of any Modified Version.
380 .PP
381
382 5. COMBINING DOCUMENTS
383 .PP
384 You may combine the Document with other documents released under this
385 License, under the terms defined in section 4 above for modified
386 versions, provided that you include in the combination all of the
387 Invariant Sections of all of the original documents, unmodified, and
388 list them all as Invariant Sections of your combined work in its
389 license notice.
390 .PP
391 The combined work need only contain one copy of this License, and
392 multiple identical Invariant Sections may be replaced with a single
393 copy. If there are multiple Invariant Sections with the same name but
394 different contents, make the title of each such section unique by
395 adding at the end of it, in parentheses, the name of the original
396 author or publisher of that section if known, or else a unique number.
397 Make the same adjustment to the section titles in the list of
398 Invariant Sections in the license notice of the combined work.
399 .PP
400 In the combination, you must combine any sections entitled "History"
401 in the various original documents, forming one section entitled
402 "History"; likewise combine any sections entitled "Acknowledgements",
403 and any sections entitled "Dedications". You must delete all sections
404 entitled "Endorsements."
405 .PP
406
407 6. COLLECTIONS OF DOCUMENTS
408 .PP
409 You may make a collection consisting of the Document and other documents
410 released under this License, and replace the individual copies of this
411 License in the various documents with a single copy that is included in
412 the collection, provided that you follow the rules of this License for
413 verbatim copying of each of the documents in all other respects.
414 .PP
415 You may extract a single document from such a collection, and distribute
416 it individually under this License, provided you insert a copy of this
417 License into the extracted document, and follow this License in all
418 other respects regarding verbatim copying of that document.
419 .PP
420
421 7. AGGREGATION WITH INDEPENDENT WORKS
422 .PP
423 A compilation of the Document or its derivatives with other separate
424 and independent documents or works, in or on a volume of a storage or
425 distribution medium, does not as a whole count as a Modified Version
426 of the Document, provided no compilation copyright is claimed for the
427 compilation. Such a compilation is called an "aggregate", and this
428 License does not apply to the other self-contained works thus compiled
429 with the Document, on account of their being thus compiled, if they
430 are not themselves derivative works of the Document.
431 .PP
432 If the Cover Text requirement of section 3 is applicable to these
433 copies of the Document, then if the Document is less than one quarter
434 of the entire aggregate, the Document's Cover Texts may be placed on
435 covers that surround only the Document within the aggregate.
436 Otherwise they must appear on covers around the whole aggregate.
437 .PP
438
439 8. TRANSLATION
440 .PP
441 Translation is considered a kind of modification, so you may
442 distribute translations of the Document under the terms of section 4.
443 Replacing Invariant Sections with translations requires special
444 permission from their copyright holders, but you may include
445 translations of some or all Invariant Sections in addition to the
446 original versions of these Invariant Sections. You may include a
447 translation of this License provided that you also include the
448 original English version of this License. In case of a disagreement
449 between the translation and the original English version of this
450 License, the original English version will prevail.
451 .PP
452
453 9. TERMINATION
454 .PP
455 You may not copy, modify, sublicense, or distribute the Document except
456 as expressly provided for under this License. Any other attempt to
457 copy, modify, sublicense or distribute the Document is void, and will
458 automatically terminate your rights under this License. However,
459 parties who have received copies, or rights, from you under this
460 License will not have their licenses terminated so long as such
461 parties remain in full compliance.
462 .PP
463
464 10. FUTURE REVISIONS OF THIS LICENSE
465 .PP
466 The Free Software Foundation may publish new, revised versions
467 of the GNU Free Documentation License from time to time. Such new
468 versions will be similar in spirit to the present version, but may
469 differ in detail to address new problems or concerns. See
470 http://www.gnu.org/copyleft/.
471 .PP
472 Each version of the License is given a distinguishing version number.
473 If the Document specifies that a particular numbered version of this
474 License "or any later version" applies to it, you have the option of
475 following the terms and conditions either of that specified version or
476 of any later version that has been published (not as a draft) by the
477 Free Software Foundation. If the Document does not specify a version
478 number of this License, you may choose any version ever published (not
479 as a draft) by the Free Software Foundation.
480 .PP
481
482 ADDENDUM: How to use this License for your documents
483 .PP
484 To use this License in a document you have written, include a copy of
485 the License in the document and put the following copyright and
486 license notices just after the title page:
487 .PP
488 Copyright (c) YEAR YOUR NAME.
489 Permission is granted to copy, distribute and/or
490 modify this document under the terms of the GNU
491 Free Documentation License, Version 1.1 or any later
492 version published by the Free Software Foundation;
493 with the Invariant Sections being LIST THEIR TITLES,
494 with the Front-Cover Texts being LIST, and with the
495 Back-Cover Texts being LIST. A copy of the license
496 is included in the section entitled "GNU Free
497 Documentation License".
498 .PP
499 If you have no Invariant Sections, write "with no Invariant Sections"
500 instead of saying which ones are invariant. If you have no
501 Front-Cover Texts, write "no Front-Cover Texts" instead of
502 "Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
503 .PP
504 If your document contains nontrivial examples of program code, we
505 recommend releasing these examples in parallel under your choice of
506 free software license, such as the GNU General Public License,
507 to permit their use in free software.
This page took 0.041088 seconds and 4 git commands to generate.