make output line buffered if selecting only some of the entries
[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.\"
9ee772fc 5.\" @(#)tail.1 6.3 (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
9ee772fc 13[\fB+-\fP]\fBnumber\fP[\fBlbc\fP][\fBrf\fP] [\fBfile\fP]
09d34764
KM
14.SH DESCRIPTION
15.I Tail
16copies the named file to the standard output beginning
17at a designated place.
18If no file is named, the standard input is used.
19.PP
20Copying begins at distance
21.I +number
22from the beginning, or
23.I \-number
24from the end of the input.
25.I Number
26is counted in units of lines, blocks or characters,
27according to the appended option
28.B l,
29.B b
30or
31.B c.
32When no units are specified, counting is by lines.
33.PP
34Specifying
35.B r
36causes tail to print lines from the end of the file in reverse order.
37The default for
38.B r
39is to print the entire file this way.
40Specifying
41.B f
42causes
43.I tail
44to not quit at end of file, but rather wait and try to read repeatedly
45in hopes that the file will grow.
46.SH "SEE ALSO"
47dd(1)
48.SH BUGS
49Tails relative to the end of the file
50are treasured up in a buffer, and thus
51are limited in length.
52.PP
53Various kinds of anomalous behavior may happen
54with character special files.