Commit | Line | Data |
---|---|---|
e16dc90a C |
1 | .TH TAIL 1 "18 January 1983" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | tail \- 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 | |
12 | copies the named file to the standard output beginning | |
13 | at a designated place. | |
14 | If no file is named, the standard input is used. | |
15 | .PP | |
16 | Copying begins at distance | |
17 | .I +number | |
18 | from the beginning, or | |
19 | .I \-number | |
20 | from the end of the input. | |
21 | .I Number | |
22 | is counted in units of lines, blocks or characters, | |
23 | according to the appended option | |
24 | .B l, | |
25 | .B b | |
26 | or | |
27 | .B c. | |
28 | When no units are specified, counting is by lines. | |
29 | .PP | |
30 | Specifying | |
31 | .B r | |
32 | causes tail to print lines from the end of the file in reverse order. | |
33 | The default for | |
34 | .B r | |
35 | is to print the entire file this way. | |
36 | Specifying | |
37 | .B f | |
38 | causes | |
39 | .I tail | |
40 | to not quit at end of file, but rather wait and try to read repeatedly | |
41 | in hopes that the file will grow. | |
42 | .SH "SEE ALSO" | |
43 | dd(1) | |
44 | .SH BUGS | |
45 | Tails relative to the end of the file | |
46 | are treasured up in a buffer, and thus | |
47 | are limited in length. | |
48 | .PP | |
49 | Various kinds of anomalous behavior may happen | |
50 | with character special files. |