2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt STRINGS 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2014-11-23 12:44:07 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm strings
|
2015-02-17 16:04:36 +00:00
|
|
|
.Nd print strings of printable characters in files
|
2014-11-23 12:44:07 +00:00
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2015-02-17 13:39:17 +00:00
|
|
|
.Op Fl a
|
2015-02-17 16:04:36 +00:00
|
|
|
.Op Fl n Ar num
|
|
|
|
.Op Fl t Ar format
|
2014-11-23 12:44:07 +00:00
|
|
|
.Op Ar file ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-02-17 16:04:36 +00:00
|
|
|
writes sequences of at least 4 printable characters in each
|
|
|
|
.Ar file
|
|
|
|
to stdout.
|
|
|
|
If no
|
|
|
|
.Ar file
|
|
|
|
is given,
|
2015-01-31 13:43:27 +00:00
|
|
|
.Nm
|
|
|
|
reads from stdin.
|
2015-02-17 13:39:17 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a
|
2015-02-17 16:04:36 +00:00
|
|
|
Scan each
|
|
|
|
.Ar file
|
2020-03-01 22:37:31 +00:00
|
|
|
entirely.
|
|
|
|
This is the default.
|
2015-02-17 16:04:36 +00:00
|
|
|
.It Fl n Ar num
|
|
|
|
Print sequences of at least
|
|
|
|
.Ar num
|
2020-03-01 22:37:31 +00:00
|
|
|
characters.
|
|
|
|
The default is 4.
|
2015-02-17 16:04:36 +00:00
|
|
|
.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.
|
2015-02-17 13:39:17 +00:00
|
|
|
.El
|
2014-11-23 12:46:12 +00:00
|
|
|
.Sh STANDARDS
|
2015-02-17 16:04:36 +00:00
|
|
|
The
|
2014-11-23 12:46:12 +00:00
|
|
|
.Nm
|
2015-02-17 16:04:36 +00:00
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2015-02-17 16:04:36 +00:00
|
|
|
specification.
|
|
|
|
.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 .
|