-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnl.1
More file actions
46 lines (46 loc) · 766 Bytes
/
nl.1
File metadata and controls
46 lines (46 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 ,
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
a tab.