TAIL.1
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:1k
- .TH TAIL 1
- .SH NAME
- tail - print the last few lines of a file
- .SH SYNOPSIS
- fBtailfR [fB-c fInfR] [fB-f] [fB-n fInfR] [fIfilefR] ...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-c" "The count refers to characters"
- .FL "-f" "On FIFO or special file, keep reading after EOF"
- .FL "-n" "The count refers to lines"
- .SH EXAMPLES
- .EX "tail -n 6" "Print last 6 lines of fIstdinfR"
- .EX "tail -c 20 file" "Print the last 20 characters of fIfilefR"
- .EX "tail -n 1 file1 file2" "Print last line of two files"
- .EX "tail -n +8 file" "Print the tail starting with line 8"
- .SH DESCRIPTION
- .PP
- The last few lines of one or more files are printed.
- The default count is 10 lines.
- The default file is fIstdinfR.
- If the value of fInfR for the fB-cfR or fB-nfR flags starts with
- a + sign, counting starts at the beginning, rather than the end of the file.
- .SH "SEE ALSO"
- .BR head (1).