commit: d7e9a65afb03a7603f49c8ca5c1ac0495a0addbf
parent 266e86ca91514be174e185f64fa761a01947e1d3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 11 Aug 2023 21:23:35 +0200
cmd/string.1: New manpage
Diffstat:
A | cmd/strings.1 | 58 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 58 insertions(+), 0 deletions(-)
diff --git a/cmd/strings.1 b/cmd/strings.1
@@ -0,0 +1,58 @@
+.\" Collection of Unix tools, comparable to coreutils
+.\" Copyright 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
+.\" SPDX-License-Identifier: MPL-2.0
+.Dd 2023-08-11
+.Dt STRINGS 1
+.Os
+.Sh NAME
+.Nm strings
+.Nd find printable strings
+.Sh SYNOPSIS
+.Nm
+.Op Fl a
+.Op Fl t Ar format
+.Op Fl n Ar number
+.Op Ar files ...
+.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,
+.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 dependend on the
+format argument:
+.Bl -tag -width d
+.It d
+Decimal
+.It o
+Octal
+.It x
+Hexadecimal
+.El
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr nm 1 ,
+.Xr isprint 3
+.Sh STANDARDS
+.Nm
+is compliant with the
+.St -p1003.1-2008
+specification.
+.Sh AUTHORS
+.An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me