strings [–aBoxz] [–n number] [–t format] [-W option[,option]...] [file …file …]
strings [–] [–Boxz] [–t format] [-W option[,option]...] [–number] [file …file …]
If the command line specifies a file name of –, strings reads the standard input. strings finds pieces of information in binary files. It is frequently used for looking through executable files to uncover items such as copyright notices, error messages, and undocumented features.
The command displays strings of printable characters that are at least four characters in length. Strings must be terminated by a NUL character or by a newline.
If pgmcodeset is specified but filecodeset is omitted, then the default file code set is ISO8859-1 even if the file is tagged with a different code set. If neither filecodeset nor pgmcodeset is specified, text conversion will not occur unless automatic conversion is enabled or the _TEXT_CONV environment variable indicates text conversion. For more information about text conversion, see Controlling text conversion for z/OS UNIX shell commands.
If filecodeset or pgmcodeset is specified, then automatic conversion is disabled for this command invocation and the -B option is ignored if it is also specified. See z/OS UNIX System Services Planning for more information about automatic conversion.
When specifying values for filecodeset, use the values that Unicode Service supports. For more information about supported code sets, see z/OS Unicode Services User's Guide and Reference.
If filecodeset is specified but pgmcodeset is omitted, then the default program code set is IBM-1047. If neither filecodeset nor pgmcodeset is specified, text conversion will not occur unless automatic conversion is enabled or the _TEXT_CONV environment variable indicates text conversion. For more information about text conversion, see Controlling text conversion for z/OS UNIX shell commands.
If filecodeset or pgmcodeset is specified, then automatic conversion is disabled for this command invocation and the -B option is ignored if it is also specified. See z/OS UNIX System Services Planning for more information about automatic conversion.
When specifying values for filecodeset, use the values that Unicode Service supports. For more information about supported code sets, see z/OS Unicode Services User's Guide and Reference.
strings myBinaryFile
strings -W filecodeset=ISO8859-1,pgmcodeset=IBM-1047 myBinaryFile
strings -B myMisTaggedFile
See Localization for more information.
POSIX.2 User Portability Extension, X/Open Portability Guide.
A Berkeley addition to most UNIX systems. Most Berkeley versions do not require the terminating NUL or newline.
The –B, –o, –W, –x, and –z options are extensions of the POSIX standard.