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