|
|
1.1 root 1: .TH TAIL 1
2: .CT 1 files
3: .SH NAME
4: tail, readslow \- deliver the last part of a file
5: .SH SYNOPSIS
6: .B tail
7: [
8: .BR +- \fInumber\fP[ lbc ][ rf ]
9: ]
10: [
11: .I file
12: ]
13: .SH DESCRIPTION
14: .I Tail
15: copies the named file to the standard output beginning
16: at a designated place.
17: If no file is named, the standard input is used.
18: .PP
19: Copying begins at distance
20: .BI + number
21: from the beginning, or
22: .BI - number
23: from the end of the input.
24: .I Number
25: is counted in units of lines, 1K blocks or characters,
26: according to the appended flag
27: .BR l ,
28: .BR b ,
29: or
30: .BR c .
31: Defaults are
32: .BR -10l .
33: .PP
34: The further flag
35: .B r
36: causes tail to print lines from the end of the file in reverse order;
37: .B f
38: (follow) causes
39: .I tail,
40: after printing to the end, to keep watch and
41: print further data as it appears.
42: .SH EXAMPLES
43: .TP
44: .B tail file
45: Print the last 10 lines of a file.
46: .TP
47: .L tail +0f file
48: Print a file, and continue to watch
49: data accumulate as it grows.
50: This function was once called
51: .I readslow.
52: .TP
53: .L sed 10q file
54: Print the first 10 lines of a file.
55: Some systems call this function
56: .I head.
57: .SH "SEE ALSO"
58: .IR dd (1)
59: .SH BUGS
60: Tails relative to the end of the file
61: are treasured up in a buffer, and thus
62: are limited in length.
63: .br
64: Various kinds of anomalous behavior may happen
65: with character special files.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.