7.2.14 strings

Display strings of printable characters in files.

Syntax

strings [ -n num ] [ --aio=naio ] [{ -w | --wallet } wallet-location ]
        [{ -T | --trace } trace-level ] filename

Command Options

The options for the strings command are:

  • filename: Specifies the file being processed.

  • -n: Optionally specifies the minimum output string length. The default value is 4.

  • --aio: Optionally specifies the number of async I/Os to use. The default value is 4.

  • -w, --wallet: Optionally specifies the path to the Exascale wallet directory.

  • -T, --trace: Optionally enables tracing and sets the trace level to 1 (minimum tracing), 2 (medium tracing), or 3 (maximum tracing).

    If the $ADR_BASE environment variable is set, the trace file is written to:

    $ADR_BASE/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc

    Otherwise, the trace file is written to:

    /tmp/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc

Examples

Example 7-18 Display printable strings in an Exascale file

The following example displays printable strings contained in @MYDATA/myfile to standard output.

$ xsh strings @MYDATA/myfile