blob: c7bed7348b8ba3f349734e5fdcd71016a9973bef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
.Dd October 8, 2015
.Dt STRINGS 1
.Os sbase
.Sh NAME
.Nm strings
.Nd print strings of printable characters in files
.Sh SYNOPSIS
.Nm
.Op Fl a
.Op Fl n Ar num
.Op Fl t Ar format
.Op Ar file ...
.Sh DESCRIPTION
.Nm
writes sequences of at least 4 printable characters in each
.Ar file
to stdout.
If no
.Ar file
is given,
.Nm
reads from stdin.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl a
Scan each
.Ar file
entirely.
This is the default.
.It Fl n Ar num
Print sequences of at least
.Ar num
characters.
The default is 4.
.It Fl t Ar format
Prepend each string with its byte offset, with
.Ar format
being one of
.Sy d , o , x
for decimal, octal or hexadecimal numbers.
.El
.Sh STANDARDS
POSIX.1-2013.
.Pp
The
.Op Fl t
output format has been changed from "%F %s" to "%8lF: %s", with
.Sy F
being one of
.Sy d , o , x .
|