sbase

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

strings.1 (859B)


      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.
     29 This is the default.
     30 .It Fl n Ar num
     31 Print sequences of at least
     32 .Ar num
     33 characters.
     34 The default is 4.
     35 .It Fl t Ar format
     36 Prepend each string with its byte offset, with
     37 .Ar format
     38 being one of
     39 .Sy d , o , x
     40 for decimal, octal or hexadecimal numbers.
     41 .El
     42 .Sh STANDARDS
     43 The
     44 .Nm
     45 utility is compliant with the
     46 .St -p1003.1-2013
     47 specification.
     48 .Pp
     49 The
     50 .Op Fl t
     51 output format has been changed from "%F %s" to "%8lF: %s", with
     52 .Sy F
     53 being one of
     54 .Sy d , o , x .