All apps/nl

nl

nl

Number the lines of a file.

Runs as nl|macOS, Linux, Windows

Autocomplete

Fig spec, with what the manifest adds · 11 options
Published once and never changed; check the digest before caching
sha256
6a100c2573dbc7fac7ac8c9140a180b88671494fe8178323b4ce94c2201bbedb
Size
3887 bytes
OptionsOn nl itself
-b
Specify the logical page body lines to be numbered <type>
-d
Specify the delimiter characters used to indicate the start of a logical page section in the input file. At most two characters may be specified; if only one character is specified, the first character is replaced and the second character remains unchanged <delim>
-f
Specify the same as -b type except for logical page footer lines <type>
-h
Specify the same as -b type except for logical page header lines <type>
-i
Specify the increment value used to number logical page lines <incr>
-l
If numbering of all lines is specified for the current logical section using the corresponding -b a, -f a or -h a option, specify the number of adjacent blank lines to be considered as one. For example, -l 2 results in only the second adjacent blank line being numbered <num>
-n
Specify the line numbering output format <format>
-p
Specify that line numbering should not be restarted at logical page delimiters
-s
Specify the characters used in separating the line number and the corresponding text line. The default sep setting is a single tab character <sep>
-v
Specify the initial value used to number logical page lines; see also the description of the -p option <startnum>
-w
Specify the number of characters to be occupied by the line number; in case the width is insufficient to hold the line number, it will be truncated to its width least significant digits <width>
ArgumentsPositional, in order
<file>
File(s) to number · filepaths