strings.1 (1274B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-09-09
- .Dt STRINGS 1
- .Os
- .Sh NAME
- .Nm strings
- .Nd find printable strings
- .Sh SYNOPSIS
- .Nm
- .Op Fl az
- .Op Fl t Ar format
- .Op Fl n Ar number
- .Op Ar file...
- .Sh DESCRIPTION
- .Nm
- reads each
- .Ar file
- in sequence and writes printable strings longer than 4 or
- .Ar number .
- If no
- .Ar file
- is given or
- .Ar file
- is
- .Ql - ,
- .Nm
- reads from the standard input.
- .Sh OPTIONS
- .Bl -tag -width Ds
- .It Fl a
- Ignored, present for POSIX compatibility.
- Files are always scanned in their entirety and it is considered a flaw to do
- otherwise.
- .It Fl n Ar number
- Change the minimum string length (default: 4).
- .It Fl t Ar format
- Write the byte offset of each string found, the format is dependent on the
- format argument:
- .Bl -tag -width d
- .It d
- Decimal
- .It o
- Octal
- .It x
- Hexadecimal
- .El
- .It Fl z
- Separate each string with NULL instead of newline.
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr nm 1 ,
- .Xr isprint 3
- .Sh STANDARDS
- .Nm
- should be compliant with the
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- The
- .Fl z
- option is an extension.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me