1STRINGS(1) GNU Development Tools STRINGS(1)
2
3
4
6 strings - print the strings of printable characters in files.
7
9 strings [-afov] [-min-len]
10 [-n min-len] [--bytes=min-len]
11 [-t radix] [--radix=radix]
12 [-e encoding] [--encoding=encoding]
13 [-] [--all] [--print-file-name]
14 [-T bfdname] [--target=bfdname]
15 [--help] [--version] file...
16
18 For each file given, GNU strings prints the printable character
19 sequences that are at least 4 characters long (or the number given with
20 the options below) and are followed by an unprintable character. By
21 default, it only prints the strings from the initialized and loaded
22 sections of object files; for other types of files, it prints the
23 strings from the whole file.
24
25 strings is mainly useful for determining the contents of non-text
26 files.
27
29 -a
30 --all
31 - Do not scan only the initialized and loaded sections of object
32 files; scan the whole files.
33
34 -f
35 --print-file-name
36 Print the name of the file before each string.
37
38 --help
39 Print a summary of the program usage on the standard output and
40 exit.
41
42 -min-len
43 -n min-len
44 --bytes=min-len
45 Print sequences of characters that are at least min-len characters
46 long, instead of the default 4.
47
48 -o Like -t o. Some other versions of strings have -o act like -t d
49 instead. Since we can not be compatible with both ways, we simply
50 chose one.
51
52 -t radix
53 --radix=radix
54 Print the offset within the file before each string. The single
55 character argument specifies the radix of the offset---o for octal,
56 x for hexadecimal, or d for decimal.
57
58 -e encoding
59 --encoding=encoding
60 Select the character encoding of the strings that are to be found.
61 Possible values for encoding are: s = single-7-bit-byte characters
62 (ASCII, ISO 8859, etc., default), S = single-8-bit-byte characters,
63 b = 16-bit bigendian, l = 16-bit littleendian, B = 32-bit bigen‐
64 dian, L = 32-bit littleendian. Useful for finding wide character
65 strings.
66
67 -T bfdname
68 --target=bfdname
69 Specify an object code format other than your system's default for‐
70 mat.
71
72 -v
73 --version
74 Print the program version number on the standard output and exit.
75
76 @file
77 Read command-line options from file. The options read are inserted
78 in place of the original @file option. If file does not exist, or
79 cannot be read, then the option will be treated literally, and not
80 removed.
81
82 Options in file are separated by whitespace. A whitespace charac‐
83 ter may be included in an option by surrounding the entire option
84 in either single or double quotes. Any character (including a
85 backslash) may be included by prefixing the character to be
86 included with a backslash. The file may itself contain additional
87 @file options; any such options will be processed recursively.
88
90 ar(1), nm(1), objdump(1), ranlib(1), readelf(1) and the Info entries
91 for binutils.
92
94 Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
95 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
96
97 Permission is granted to copy, distribute and/or modify this document
98 under the terms of the GNU Free Documentation License, Version 1.1 or
99 any later version published by the Free Software Foundation; with no
100 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
101 Texts. A copy of the license is included in the section entitled "GNU
102 Free Documentation License".
103
104
105
106binutils-2.17.50.0.12-4 2007-04-14 STRINGS(1)