BSD 4_1c_2 release
[unix-history] / usr / man / man1 / tail.1
CommitLineData
e16dc90a
C
1.TH TAIL 1 "18 January 1983"
2.UC 4
3.SH NAME
4tail \- deliver the last part of a file
5.SH SYNOPSIS
6.B tail
7.if t [ \(+-number[\fBlbc\fR][\fBfr\fR] ]
8.if n +\b_number[lbc\b\b\b___][r\b_f\b_]
9[ file ]
10.SH DESCRIPTION
11.I Tail
12copies the named file to the standard output beginning
13at a designated place.
14If no file is named, the standard input is used.
15.PP
16Copying begins at distance
17.I +number
18from the beginning, or
19.I \-number
20from the end of the input.
21.I Number
22is counted in units of lines, blocks or characters,
23according to the appended option
24.B l,
25.B b
26or
27.B c.
28When no units are specified, counting is by lines.
29.PP
30Specifying
31.B r
32causes tail to print lines from the end of the file in reverse order.
33The default for
34.B r
35is to print the entire file this way.
36Specifying
37.B f
38causes
39.I tail
40to not quit at end of file, but rather wait and try to read repeatedly
41in hopes that the file will grow.
42.SH "SEE ALSO"
43dd(1)
44.SH BUGS
45Tails relative to the end of the file
46are treasured up in a buffer, and thus
47are limited in length.
48.PP
49Various kinds of anomalous behavior may happen
50with character special files.