1 cfa37a7b 2004-04-10 devnull .TH TAIL 1
3 cfa37a7b 2004-04-10 devnull tail \- deliver the last part of a file
4 cfa37a7b 2004-04-10 devnull .SH SYNOPSIS
7 cfa37a7b 2004-04-10 devnull .BR +- \fInumber\fP[ lbc ][ rf ]
19 cfa37a7b 2004-04-10 devnull .I nlines
23 cfa37a7b 2004-04-10 devnull .I nbytes
28 cfa37a7b 2004-04-10 devnull .SH DESCRIPTION
30 cfa37a7b 2004-04-10 devnull copies the named file to the standard output beginning
31 cfa37a7b 2004-04-10 devnull at a designated place.
32 cfa37a7b 2004-04-10 devnull If no file is named, the standard input is copied.
34 cfa37a7b 2004-04-10 devnull Copying begins at position
35 cfa37a7b 2004-04-10 devnull .BI + number
36 cfa37a7b 2004-04-10 devnull measured from the beginning, or
37 cfa37a7b 2004-04-10 devnull .BI - number
38 cfa37a7b 2004-04-10 devnull from the end of the input.
39 cfa37a7b 2004-04-10 devnull .I Number
40 cfa37a7b 2004-04-10 devnull is counted in lines, 1K blocks or bytes,
41 cfa37a7b 2004-04-10 devnull according to the appended flag
46 cfa37a7b 2004-04-10 devnull Default is
48 cfa37a7b 2004-04-10 devnull (ten ell).
50 cfa37a7b 2004-04-10 devnull The further flag
52 cfa37a7b 2004-04-10 devnull causes tail to print lines from the end of the file in reverse order;
54 cfa37a7b 2004-04-10 devnull (follow) causes
55 cfa37a7b 2004-04-10 devnull .IR tail ,
56 cfa37a7b 2004-04-10 devnull after printing to the end, to keep watch and
57 cfa37a7b 2004-04-10 devnull print further data as it appears.
59 cfa37a7b 2004-04-10 devnull The second syntax is that promulgated by POSIX, where
61 cfa37a7b 2004-04-10 devnull .I numbers
62 cfa37a7b 2004-04-10 devnull rather than the options are signed.
63 cfa37a7b 2004-04-10 devnull .SH EXAMPLES
65 cfa37a7b 2004-04-10 devnull .B tail file
66 cfa37a7b 2004-04-10 devnull Print the last 10 lines of a file.
68 cfa37a7b 2004-04-10 devnull .B tail +0f file
69 cfa37a7b 2004-04-10 devnull Print a file, and continue to watch
70 cfa37a7b 2004-04-10 devnull data accumulate as it grows.
72 cfa37a7b 2004-04-10 devnull .B sed 10q file
73 cfa37a7b 2004-04-10 devnull Print the first 10 lines of a file.
74 cfa37a7b 2004-04-10 devnull .SH SOURCE
75 b5fdffee 2004-04-19 devnull .B /usr/local/plan9/src/cmd/tail.c
77 cfa37a7b 2004-04-10 devnull Tails relative to the end of the file
78 cfa37a7b 2004-04-10 devnull are treasured up in a buffer, and thus
79 cfa37a7b 2004-04-10 devnull are limited in length.
81 cfa37a7b 2004-04-10 devnull According to custom, option
82 cfa37a7b 2004-04-10 devnull .BI + number
83 cfa37a7b 2004-04-10 devnull counts lines from 1, and counts
84 cfa37a7b 2004-04-10 devnull blocks and bytes from 0.
87 cfa37a7b 2004-04-10 devnull is ignorant of UTF.