| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH NL "1" "June 2025" "GNU coreutils 9.7" "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 |
\fB\-b\fR, \fB\-\-body\-numbering\fR=\fI\,STYLE\/\fR |
| 18 |
use STYLE for numbering body lines |
| 19 |
.TP |
| 20 |
\fB\-d\fR, \fB\-\-section\-delimiter\fR=\fI\,CC\/\fR |
| 21 |
use CC for logical page delimiters |
| 22 |
.TP |
| 23 |
\fB\-f\fR, \fB\-\-footer\-numbering\fR=\fI\,STYLE\/\fR |
| 24 |
use STYLE for numbering footer lines |
| 25 |
.TP |
| 26 |
\fB\-h\fR, \fB\-\-header\-numbering\fR=\fI\,STYLE\/\fR |
| 27 |
use STYLE for numbering header lines |
| 28 |
.TP |
| 29 |
\fB\-i\fR, \fB\-\-line\-increment\fR=\fI\,NUMBER\/\fR |
| 30 |
line number increment at each line |
| 31 |
.TP |
| 32 |
\fB\-l\fR, \fB\-\-join\-blank\-lines\fR=\fI\,NUMBER\/\fR |
| 33 |
group of NUMBER empty lines counted as one |
| 34 |
.TP |
| 35 |
\fB\-n\fR, \fB\-\-number\-format\fR=\fI\,FORMAT\/\fR |
| 36 |
insert line numbers according to FORMAT |
| 37 |
.TP |
| 38 |
\fB\-p\fR, \fB\-\-no\-renumber\fR |
| 39 |
do not reset line numbers for each section |
| 40 |
.TP |
| 41 |
\fB\-s\fR, \fB\-\-number\-separator\fR=\fI\,STRING\/\fR |
| 42 |
add STRING after (possible) line number |
| 43 |
.TP |
| 44 |
\fB\-v\fR, \fB\-\-starting\-line\-number\fR=\fI\,NUMBER\/\fR |
| 45 |
first line number for each section |
| 46 |
.TP |
| 47 |
\fB\-w\fR, \fB\-\-number\-width\fR=\fI\,NUMBER\/\fR |
| 48 |
use NUMBER columns for line numbers |
| 49 |
.TP |
| 50 |
\fB\-\-help\fR |
| 51 |
display this help and exit |
| 52 |
.TP |
| 53 |
\fB\-\-version\fR |
| 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 |
GNU coreutils online help: <https://www.gnu.org/software/coreutils/> |
| 92 |
.br |
| 93 |
Report any translation bugs to <https://translationproject.org/team/> |
| 94 |
.SH "SEE ALSO" |
| 95 |
Full documentation <https://www.gnu.org/software/coreutils/nl> |
| 96 |
.br |
| 97 |
or available locally via: info \(aq(coreutils) nl invocation\(aq |
| 98 |
.PP |
| 99 |
.br |
| 100 |
Packaged by Debian (9.7\-3) |
| 101 |
.br |
| 102 |
Copyright \(co 2025 Free Software Foundation, Inc. |
| 103 |
.br |
| 104 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 105 |
.br |
| 106 |
This is free software: you are free to change and redistribute it. |
| 107 |
.br |
| 108 |
There is NO WARRANTY, to the extent permitted by law. |