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