2015-02-09 10:26:17 -05:00
|
|
|
.Dd February 9, 2015
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt TAIL 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm tail
|
|
|
|
.Nd display final lines of files
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-02-09 10:26:17 -05:00
|
|
|
.Op Fl f
|
2015-02-09 13:01:35 -05:00
|
|
|
.Op Fl c Ar num | Fl n Ar num | Fl N
|
2015-02-09 10:26:17 -05:00
|
|
|
.Op Ar file ...
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-02-09 10:26:17 -05:00
|
|
|
writes the last 10 lines of each
|
|
|
|
.Ar file
|
|
|
|
to stdout. If no
|
2015-01-31 08:43:27 -05:00
|
|
|
.Ar file
|
|
|
|
is given,
|
|
|
|
.Nm
|
|
|
|
reads from stdin.
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-02-09 13:01:35 -05:00
|
|
|
.It Fl c Ar num | Fl n Ar num | Fl N
|
2015-02-09 14:04:54 -05:00
|
|
|
Display final
|
2015-02-09 12:38:41 -05:00
|
|
|
.Ar num
|
2015-02-09 13:01:35 -05:00
|
|
|
characters | lines |
|
|
|
|
.Ar N
|
|
|
|
lines. If
|
2015-02-09 12:38:41 -05:00
|
|
|
.Ar num
|
2015-02-09 13:01:35 -05:00
|
|
|
begins with '+'
|
|
|
|
it is an offset from the beginning of each
|
2015-02-09 12:38:41 -05:00
|
|
|
.Ar file .
|
|
|
|
If
|
|
|
|
.Ar num
|
2015-02-09 13:01:35 -05:00
|
|
|
begins with '-' it is as if no sign was given.
|
2015-02-09 10:26:17 -05:00
|
|
|
.It Fl f
|
|
|
|
If one
|
|
|
|
.Ar file
|
|
|
|
is specified, append lines to output as
|
|
|
|
.Ar file
|
|
|
|
grows.
|
2015-01-30 15:49:32 -05:00
|
|
|
.El
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr head 1
|
2015-02-09 12:38:41 -05:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|
2015-02-09 13:02:39 -05:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Op Fl N
|
|
|
|
flag is an extension to that specification.
|