add some mandoc pages and fix some warnings

- add .Os, it is mandatory.
- don't redeclare .Nm when it's not needed.
- fix some warnings (checked with mandoc -Tlint).
- remove some leftover old stuff.
This commit is contained in:
Hiltjo Posthuma
2015-01-30 21:17:58 +01:00
parent 8c177d8d83
commit 57a19e3b86
52 changed files with 231 additions and 183 deletions

35
tail.1
View File

@@ -1,20 +1,23 @@
.TH TAIL 1 sbase\-VERSION
.SH NAME
tail \- display final lines of files
.SH SYNOPSIS
.B tail
.RB [ \-n
.IR lines ]
.RI [ file ]
.SH DESCRIPTION
.B tail
.Dd January 30, 2015
.Dt TAIL 1 sbase\-VERSION
.Os
.Sh NAME
.Nm tail
.Nd display final lines of files
.Sh SYNOPSIS
.Nm
.Op Fl n Ar lines
.Op Ar file
.Sh DESCRIPTION
.Nm
writes the last 10 lines of the file to stdout. If no file is given, tail reads
from stdin.
.SH OPTIONS
.TP
.BI \-n " lines"
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl n Ar lines
outputs the given number of lines. If
.I lines
.El
.Ar lines
begins with '+' it is used as an offset from the beginning of the file.
.SH SEE ALSO
.IR head (1)
.Sh SEE ALSO
.Xr head 1