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