2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
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-03-05 08:13:42 +00:00
|
|
|
.Op Fl c Ar num | Fl n Ar num | Fl Ns Ar num
|
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-03-05 08:13:42 +00:00
|
|
|
.It Fl c Ar num | Fl n Ar num | Fl Ns Ar num
|
2015-02-09 19:04:54 +00:00
|
|
|
Display final
|
2015-02-09 17:38:41 +00:00
|
|
|
.Ar num
|
2015-02-09 18:01:35 +00:00
|
|
|
characters | lines |
|
|
|
|
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-03-17 22:24:43 +00:00
|
|
|
begins with '-' it is as if no sign was given. The default is 10 lines.
|
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
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2015-02-09 17:38:41 +00:00
|
|
|
specification.
|
2015-02-09 18:02:39 +00:00
|
|
|
.Pp
|
2015-03-13 22:54:13 +00:00
|
|
|
The
|
2015-03-05 08:13:42 +00:00
|
|
|
.Op Fl Ns Ar num
|
|
|
|
syntax is an extension to that specification.
|