sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

strings.1 (860B)


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