added depend label
[unix-history] / usr / src / usr.bin / tail / tail.1
CommitLineData
09d34764
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
735908d4 5.\" @(#)tail.1 6.2 (Berkeley) %G%
09d34764 6.\"
a025a9d0 7.TH TAIL 1 ""
09d34764
KM
8.UC 4
9.SH NAME
10tail \- deliver the last part of a file
11.SH SYNOPSIS
12.B tail
13.if t [ \(+-number[\fBlbc\fR][\fBfr\fR] ]
735908d4 14.if n +\b_number[l\b_b\b_c\b_][r\b_f\b_]
09d34764
KM
15[ file ]
16.SH DESCRIPTION
17.I Tail
18copies the named file to the standard output beginning
19at a designated place.
20If no file is named, the standard input is used.
21.PP
22Copying begins at distance
23.I +number
24from the beginning, or
25.I \-number
26from the end of the input.
27.I Number
28is counted in units of lines, blocks or characters,
29according to the appended option
30.B l,
31.B b
32or
33.B c.
34When no units are specified, counting is by lines.
35.PP
36Specifying
37.B r
38causes tail to print lines from the end of the file in reverse order.
39The default for
40.B r
41is to print the entire file this way.
42Specifying
43.B f
44causes
45.I tail
46to not quit at end of file, but rather wait and try to read repeatedly
47in hopes that the file will grow.
48.SH "SEE ALSO"
49dd(1)
50.SH BUGS
51Tails relative to the end of the file
52are treasured up in a buffer, and thus
53are limited in length.
54.PP
55Various kinds of anomalous behavior may happen
56with character special files.