2015-02-28 12:43:29 +00:00
|
|
|
.Dd February 17, 2015
|
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
|
|
|
|
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.
|
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
|
|
|
|
.St -p1003.1-2008
|
|
|
|
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 .
|