sbase

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

tail.1 (885B)


      1 .Dd 2015-10-08
      2 .Dt TAIL 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm tail
      6 .Nd display final lines of files
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl f
     10 .Op Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num
     11 .Op Ar file ...
     12 .Sh DESCRIPTION
     13 .Nm
     14 writes the last 10 lines of each
     15 .Ar file
     16 to stdout. If no
     17 .Ar file
     18 is given,
     19 .Nm
     20 reads from stdin.
     21 .Sh OPTIONS
     22 .Bl -tag -width Ds
     23 .It Fl c Ar num | Fl m Ar num | Fl n Ar num | Fl Ns Ar num
     24 Display final
     25 .Ar num
     26 bytes | characters | lines |
     27 lines. If
     28 .Ar num
     29 begins with '+'
     30 it is an offset from the beginning of each
     31 .Ar file .
     32 If
     33 .Ar num
     34 begins with '-' it is as if no sign was given. The default is 10 lines.
     35 .It Fl f
     36 If one
     37 .Ar file
     38 is specified, append lines to output as
     39 .Ar file
     40 grows.
     41 .El
     42 .Sh SEE ALSO
     43 .Xr head 1
     44 .Sh STANDARDS
     45 The
     46 .Nm
     47 utility is compliant with the
     48 .St -p1003.1-2013
     49 specification.
     50 .Pp
     51 The
     52 .Op Fl Ns Ar num
     53 syntax is an extension to that specification.