Refactor tail(1) manpage and update README
It's not finished yet. We still need the c-flag.
This commit is contained in:
parent
c0d36e0064
commit
a5cc60f2e0
2
README
2
README
|
@ -64,7 +64,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
|
||||||
=* sponge non-posix none
|
=* sponge non-posix none
|
||||||
strings no -a, -n, -t
|
strings no -a, -n, -t
|
||||||
=* sync non-posix none
|
=* sync non-posix none
|
||||||
= tail no -c, -f
|
= tail no -c
|
||||||
=* tar non-posix none
|
=* tar non-posix none
|
||||||
=* tee yes none
|
=* tee yes none
|
||||||
test yes none
|
test yes none
|
||||||
|
|
26
tail.1
26
tail.1
|
@ -1,4 +1,4 @@
|
||||||
.Dd January 30, 2015
|
.Dd February 9, 2015
|
||||||
.Dt TAIL 1
|
.Dt TAIL 1
|
||||||
.Os sbase
|
.Os sbase
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -6,21 +6,33 @@
|
||||||
.Nd display final lines of files
|
.Nd display final lines of files
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl n Ar lines
|
.Op Fl f
|
||||||
.Op Ar file
|
.Op Fl n Ar num
|
||||||
|
.Op Ar file ...
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
.Nm
|
.Nm
|
||||||
writes the last 10 lines of the file to stdout. If no
|
writes the last 10 lines of each
|
||||||
|
.Ar file
|
||||||
|
to stdout. If no
|
||||||
.Ar file
|
.Ar file
|
||||||
is given,
|
is given,
|
||||||
.Nm
|
.Nm
|
||||||
reads from stdin.
|
reads from stdin.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
|
.It Fl f
|
||||||
|
If one
|
||||||
|
.Ar file
|
||||||
|
is specified, append lines to output as
|
||||||
|
.Ar file
|
||||||
|
grows.
|
||||||
.It Fl n Ar lines
|
.It Fl n Ar lines
|
||||||
Outputs the given number of lines. If
|
Display
|
||||||
.Ar lines
|
.Ar num
|
||||||
begins with '+' it is used as an offset from the beginning of the file.
|
lines. If
|
||||||
|
.Ar num
|
||||||
|
begins with '+' it is used as an offset from the beginning of each
|
||||||
|
.Ar file .
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr head 1
|
.Xr head 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user