[hackers] [sbase] Update nl(1) manpage || sin

From: <git_AT_suckless.org>
Date: Thu, 04 Dec 2014 14:50:21 +0100

commit 1150a5cbc9634d923fa3759b0ae8c5a98a9c417d
Author: sin <sin_AT_2f30.org>
Date: Thu Dec 4 13:49:07 2014 +0000

    Update nl(1) manpage

diff --git a/nl.1 b/nl.1
index 61159b4..f8e7cd8 100644
--- a/nl.1
+++ b/nl.1
_AT_@ -1,46 +1,46 @@
-.TH NL 1 sbase\-VERSION
-.SH NAME
-nl \- number lines
-.SH SYNOPSIS
-.B nl
-.RB [ \-b
-.IR mode ]
-.RB [ \-i
-.IR increment ]
-.RB [ \-s
-.IR separator ]
-.RI [ file ]
-.SH DESCRIPTION
-.B nl
-reads each file in sequence and writes it to stdout with non\-empty lines
-numbered. If no file is given, nl reads from stdin.
-.SH OPTIONS
-.TP
-.BI \-b " mode"
-defines which lines will be numbered:
-.PD 0
-.RS
-.TP
-.B a
-all lines.
-.TP
-.B n
-no lines.
-.TP
-.BI p pattern
-only lines which match
-.IR pattern ,
+.Dd December 4, 2014
+.Dt NL 1 sbase\-VERSION
+.Os
+.Sh NAME
+.Nm nl
+.Nd line numbering filter
+.Sh SYNOPSIS
+.Nm nl
+.Op Fl b Ar type
+.Op Fl i Ar incr
+.Op Fl s Ar sep
+.Op Ar file
+.Sh DESCRIPTION
+.Nm
+reads lines from the named
+.Ar file
+and writes them to stdout with non-empty lines
+numbered. If no file is given
+.Nm
+reads from stdin.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Fl b Ar type
+Defines which lines will be numbered:
+.Bl -tag -width pstringXX
+.It a
+All lines.
+.It n
+No lines.
+.It t
+Only non-empty lines (default).
+.It p Ns Ar expr
+Only lines which match
+.Ar expr ,
 a regular expression as defined in
 .IR regex (7).
 .TP
-.B t
-only non\-empty lines (default).
-.RE
-.PD
-.TP
-.BI \-i " increment"
-defines the increment between numbered lines.
-.TP
-.BI \-s " separator"
-defines the string used to separate line numbers and lines. By default this is
+.El
+.It Fl i Ar incr
+Defines the increment between numbered lines.
+.It Fl s Ar sep
+Defines the string used to separate line numbers and lines. By default this is
 a tab.
+.El
+.Sh SEE ALSO
+.Xr pr 1
diff --git a/nl.c b/nl.c
index 44772ad..921d756 100644
--- a/nl.c
+++ b/nl.c
_AT_@ -18,7 +18,7 @@ static regex_t preg;
 static void
 usage(void)
 {
- eprintf("usage: %s [-b style] [-i increment] [-s sep] [file]\n", argv0);
+ eprintf("usage: %s [-b type] [-i incr] [-s sep] [file]\n", argv0);
 }
 
 int
Received on Thu Dec 04 2014 - 14:50:21 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 04 2014 - 15:00:10 CET