strings

NAME

strings - list printable strings in file

SYNOPSIS

strings [-a] [-t format] [-n number] file ...

DESCRIPTION

The strings(1) utility searches the specified file for printable strings and writes them to standard output, one string to a line. A printable string is a sequence of number or more characters terminated by a newline or null character; the default value for number is 4.

The strings(1) utility takes the following options:

-a
Scan all of the file.
-n number
Display only strings that are number characters long or longer; the default value for number is 4.
-t format
Before each string, write its byte offset from the start of the file. Use the specified format for numeric values. The format is either d (decimal the default), o (octal), or x (hexadecimal). The offset is written on the line before the string.

DIAGNOSTICS

The strings(1) utility returns 0 if it completed successfully, and >0 if an error occurred.

SEE ALSO

nm(1)