source: trunk/minix/man/man1/tail.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 947 bytes
RevLine 
[9]1.TH TAIL 1
2.SH NAME
3tail \- print the last few lines of a file
4.SH SYNOPSIS
5\fBtail\fR [\fB\-c \fIn\fR] [\fB\-f] [\fB\-n \fIn\fR] [\fIfile\fR] ...\fR
6.br
7.de FL
8.TP
9\\fB\\$1\\fR
10\\$2
11..
12.de EX
13.TP 20
14\\fB\\$1\\fR
15# \\$2
16..
17.SH OPTIONS
18.FL "\-c" "The count refers to characters"
19.FL "\-f" "On FIFO or special file, keep reading after EOF"
20.FL "\-n" "The count refers to lines"
21.SH EXAMPLES
22.EX "tail \-n 6" "Print last 6 lines of \fIstdin\fR"
23.EX "tail \-c 20 file" "Print the last 20 characters of \fIfile\fR"
24.EX "tail \-n 1 file1 file2" "Print last line of two files"
25.EX "tail \-n +8 file" "Print the tail starting with line 8"
26.SH DESCRIPTION
27.PP
28The last few lines of one or more files are printed.
29The default count is 10 lines.
30The default file is \fIstdin\fR.
31If the value of \fIn\fR for the \fB\-c\fR or \fB\-n\fR flags starts with
32a + sign, counting starts at the beginning, rather than the end of the file.
33.SH "SEE ALSO"
34.BR head (1).
Note: See TracBrowser for help on using the repository browser.