.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH NL "1" "August 2022" "GNU coreutils 8.32" "User Commands" .SH NAME nl \- manual page for nl 8.32 .SH SYNOPSIS .B nl [\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]... .SH DESCRIPTION Write each FILE to standard output, with line numbers added. .PP With no FILE, or when FILE is \-, read standard input. .PP Mandatory arguments to long options are mandatory for short options too. .TP \fB\-b\fR, \fB\-\-body\-numbering\fR=\fI\,STYLE\/\fR use STYLE for numbering body lines .TP \fB\-d\fR, \fB\-\-section\-delimiter\fR=\fI\,CC\/\fR use CC for logical page delimiters .TP \fB\-f\fR, \fB\-\-footer\-numbering\fR=\fI\,STYLE\/\fR use STYLE for numbering footer lines .TP \fB\-h\fR, \fB\-\-header\-numbering\fR=\fI\,STYLE\/\fR use STYLE for numbering header lines .TP \fB\-i\fR, \fB\-\-line\-increment\fR=\fI\,NUMBER\/\fR line number increment at each line .TP \fB\-l\fR, \fB\-\-join\-blank\-lines\fR=\fI\,NUMBER\/\fR group of NUMBER empty lines counted as one .TP \fB\-n\fR, \fB\-\-number\-format\fR=\fI\,FORMAT\/\fR insert line numbers according to FORMAT .TP \fB\-p\fR, \fB\-\-no\-renumber\fR do not reset line numbers for each section .TP \fB\-s\fR, \fB\-\-number\-separator\fR=\fI\,STRING\/\fR add STRING after (possible) line number .TP \fB\-v\fR, \fB\-\-starting\-line\-number\fR=\fI\,NUMBER\/\fR first line number for each section .TP \fB\-w\fR, \fB\-\-number\-width\fR=\fI\,NUMBER\/\fR use NUMBER columns for line numbers .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .PP 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 \fB\-v1\fR \fB\-w6\fR .PP CC are two delimiter characters used to construct logical page delimiters; a missing second character implies ':'. .PP STYLE is one of: .TP a number all lines .TP t number only nonempty lines .TP n number no lines .TP pBRE number only lines that contain a match for the basic regular expression, BRE .PP FORMAT is one of: .TP ln left justified, no leading zeros .TP rn right justified, no leading zeros .TP rz right justified, leading zeros .PP GNU coreutils online help: Report any translation bugs to Full documentation or available locally via: info '(coreutils) nl invocation' .SH AUTHOR Written by Scott Bartram and David MacKenzie. .SH COPYRIGHT Copyright \(co 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.