importing tail
Change-Id: Ieda9690195ccd78f081b383cb530702d45537122
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ MAN= ash.1 at.1 \
|
||||
remsync.1 rget.1 rlogin.1 rsh.1 rz.1 \
|
||||
shar.1 spell.1 \
|
||||
svc.1 svrctl.1 \
|
||||
synctree.1 sysenv.1 sz.1 tail.1 telnet.1 template.1 \
|
||||
synctree.1 sysenv.1 sz.1 telnet.1 template.1 \
|
||||
term.1 termcap.1 tget.1 time.1 \
|
||||
truncate.1 umount.1 \
|
||||
uud.1 uue.1 vol.1 whereis.1 which.1 \
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
.TH TAIL 1
|
||||
.SH NAME
|
||||
tail \- print the last few lines of a file
|
||||
.SH SYNOPSIS
|
||||
\fBtail\fR [\fB\-c \fIn\fR] [\fB\-f] [\fB\-n \fIn\fR] [\fIfile\fR] ...\fR
|
||||
.br
|
||||
.de FL
|
||||
.TP
|
||||
\\fB\\$1\\fR
|
||||
\\$2
|
||||
..
|
||||
.de EX
|
||||
.TP 20
|
||||
\\fB\\$1\\fR
|
||||
# \\$2
|
||||
..
|
||||
.SH OPTIONS
|
||||
.TP 5
|
||||
.B \-c
|
||||
# The count refers to characters
|
||||
.TP 5
|
||||
.B \-f
|
||||
# On FIFO or special file, keep reading after EOF
|
||||
.TP 5
|
||||
.B \-n
|
||||
# The count refers to lines
|
||||
.SH EXAMPLES
|
||||
.TP 20
|
||||
.B tail \-n 6
|
||||
# Print last 6 lines of \fIstdin\fR
|
||||
.TP 20
|
||||
.B tail \-c 20 file
|
||||
# Print the last 20 characters of \fIfile\fR
|
||||
.TP 20
|
||||
.B tail \-n 1 file1 file2
|
||||
# Print last line of two files
|
||||
.TP 20
|
||||
.B 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 \fIstdin\fR.
|
||||
If the value of \fIn\fR for the \fB\-c\fR or \fB\-n\fR flags starts with
|
||||
a + sign, counting starts at the beginning, rather than the end of the file.
|
||||
.SH "SEE ALSO"
|
||||
.BR head (1).
|
||||
Reference in New Issue
Block a user