Debian Codegraph @

upstream/debian-unstable/man1/nl.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH NL "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 nl \- number lines of files
5 .SH SYNOPSIS
6 .B nl
7 [\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Write each FILE to standard output, with line numbers added.
12 .PP
13 With no FILE, or when FILE is \-, read standard input.
14 .PP
15 Mandatory arguments to long options are mandatory for short options too.
16 .TP
17 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-b'\fB\-b, \-\-body\-numbering=\,STYLE\fP\X'tty: link'\/\fR
18 use STYLE for numbering body lines
19 .TP
20 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-d'\fB\-d, \-\-section\-delimiter=\,CC\fP\X'tty: link'\/\fR
21 use CC for logical page delimiters
22 .TP
23 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-f'\fB\-f, \-\-footer\-numbering=\,STYLE\fP\X'tty: link'\/\fR
24 use STYLE for numbering footer lines
25 .TP
26 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-h'\fB\-h, \-\-header\-numbering=\,STYLE\fP\X'tty: link'\/\fR
27 use STYLE for numbering header lines
28 .TP
29 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-i'\fB\-i, \-\-line\-increment=\,NUMBER\fP\X'tty: link'\/\fR
30 line number increment at each line
31 .TP
32 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-l'\fB\-l, \-\-join\-blank\-lines=\,NUMBER\fP\X'tty: link'\/\fR
33 group of NUMBER empty lines counted as one
34 .TP
35 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-n'\fB\-n, \-\-number\-format=\,FORMAT\fP\X'tty: link'\/\fR
36 insert line numbers according to FORMAT
37 .TP
38 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-p'\fB\-p, \-\-no\-renumber\fP\X'tty: link'
39 do not reset line numbers for each section
40 .TP
41 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-s'\fB\-s, \-\-number\-separator=\,STRING\fP\X'tty: link'\/\fR
42 add STRING after (possible) line number
43 .TP
44 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-v'\fB\-v, \-\-starting\-line\-number=\,NUMBER\fP\X'tty: link'\/\fR
45 first line number for each section
46 .TP
47 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#nl-w'\fB\-w, \-\-number\-width=\,NUMBER\fP\X'tty: link'\/\fR
48 use NUMBER columns for line numbers
49 .TP
50 \X'tty: link https://www.gnu.org/software/coreutils/nl#nl--help'\fB\-\-help\fP\X'tty: link'
51 display this help and exit
52 .TP
53 \X'tty: link https://www.gnu.org/software/coreutils/nl#nl--version'\fB\-\-version\fP\X'tty: link'
54 output version information and exit
55 .PP
56 Default options are: \fB\-bt\fR \fB\-d\fR'\e:' \fB\-fn\fR \fB\-hn\fR \fB\-i1\fR \fB\-l1\fR \fB\-n\fR'rn' \fB\-s\fR<TAB> \fB\-v1\fR \fB\-w6\fR
57 .PP
58 CC are two delimiter characters used to construct logical page delimiters;
59 a missing second character implies ':'. As a GNU extension one can specify
60 more than two characters, and also specifying the empty string (\fB\-d\fR '')
61 disables section matching.
62 .PP
63 STYLE is one of:
64 .TP
65 a
66 number all lines
67 .TP
68 t
69 number only nonempty lines
70 .TP
71 n
72 number no lines
73 .TP
74 pBRE
75 number only lines that contain a match for the basic regular
76 expression, BRE
77 .PP
78 FORMAT is one of:
79 .TP
80 ln
81 left justified, no leading zeros
82 .TP
83 rn
84 right justified, no leading zeros
85 .TP
86 rz
87 right justified, leading zeros
88 .SH AUTHOR
89 Written by Scott Bartram and David MacKenzie.
90 .SH "REPORTING BUGS"
91 Report bugs to: bug\[email protected]
92 .br
93 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
94 .br
95 General help using GNU software: <https://www.gnu.org/gethelp/>
96 .br
97 Report any translation bugs to <https://translationproject.org/team/>
98 .SH "SEE ALSO"
99 Full documentation <https://www.gnu.org/software/coreutils/nl>
100 .br
101 or available locally via: info \(aq(coreutils) nl invocation\(aq
102 .PP
103 .br
104 Packaged by Debian (9.10\-1)
105 .br
106 Copyright \(co 2026 Free Software Foundation, Inc.
107 .br
108 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
109 .br
110 This is free software: you are free to change and redistribute it.
111 .br
112 There is NO WARRANTY, to the extent permitted by law.