blob: 21ad833ab0b6d49c97b557322ea817b6e43b169a [file] [log] [blame]
FRIGNe51a2e62015-10-08 17:15:08 +02001.Dd 2015-10-08
Hiltjo Posthuma4a920a52015-01-31 14:20:02 +01002.Dt STRINGS 1
sin0934e7f2015-01-31 19:37:03 +00003.Os sbase
sinaabcb692014-11-23 12:44:07 +00004.Sh NAME
5.Nm strings
FRIGNe5b54972015-02-17 17:04:36 +01006.Nd print strings of printable characters in files
sinaabcb692014-11-23 12:44:07 +00007.Sh SYNOPSIS
Hiltjo Posthuma57a19e32015-01-30 21:17:58 +01008.Nm
sin8ce6d702015-02-17 13:39:17 +00009.Op Fl a
FRIGNe5b54972015-02-17 17:04:36 +010010.Op Fl n Ar num
11.Op Fl t Ar format
sinaabcb692014-11-23 12:44:07 +000012.Op Ar file ...
13.Sh DESCRIPTION
14.Nm
FRIGNe5b54972015-02-17 17:04:36 +010015writes sequences of at least 4 printable characters in each
16.Ar file
17to stdout.
18If no
19.Ar file
20is given,
Hiltjo Posthumaf769c242015-01-31 14:43:27 +010021.Nm
22reads from stdin.
sin8ce6d702015-02-17 13:39:17 +000023.Sh OPTIONS
24.Bl -tag -width Ds
25.It Fl a
FRIGNe5b54972015-02-17 17:04:36 +010026Scan each
27.Ar file
28entirely. This is the default.
29.It Fl n Ar num
30Print sequences of at least
31.Ar num
32characters. The default is 4.
33.It Fl t Ar format
34Prepend each string with its byte offset, with
35.Ar format
36being one of
37.Sy d , o , x
38for decimal, octal or hexadecimal numbers.
sin8ce6d702015-02-17 13:39:17 +000039.El
sin5c9dc1b2014-11-23 12:46:12 +000040.Sh STANDARDS
FRIGNe5b54972015-02-17 17:04:36 +010041The
sin5c9dc1b2014-11-23 12:46:12 +000042.Nm
FRIGNe5b54972015-02-17 17:04:36 +010043utility is compliant with the
FRIGN57dc7b92015-03-27 17:22:48 +010044.St -p1003.1-2013
FRIGNe5b54972015-02-17 17:04:36 +010045specification.
46.Pp
47The
48.Op Fl t
49output format has been changed from "%F %s" to "%8lF: %s", with
50.Sy F
51being one of
52.Sy d , o , x .
OSZAR »