MPE/iX Shell and Utilities Reference Manual, Vol 2
nl(1) MPE/iX Shell and Utilities nl(1)
-htype Specifies the page header numbering type (see the –b option). The default type is n
(no lines numbered).
–in Sets the line increment to n rather than the default value of 1.
–ln When the page numbering type is a (all), blank lines are treated specially. Every nth
consecutive blank line is numbered. When this option is not specified, n defaults to 1
and, hence, every blank line is numbered.
–nfmt Specifies the line numbering format, which must be one of the following:
n right justified line number, padded to width (see –w) on the left with spaces
(the default format).
rz right justified line number, padded on left with zeroes.
ln left justified line number, padded on right with spaces.
–p Specifies continuous page numbering across page boundaries. By default, nl restarts
numbering (as in the next option) at each new page.
–ssep The string sep is printed to separate the line number from the text of the line being
numbered. When this option is not specified, this separator is a single tab character.
–v[n] Starts numbering for each new page at n. If this option is not specified, page number-
ing starts at 1.
–w[n] Sets the width of the line number in the output to n. If this is not specified, the default
is 6.
EXAMPLE
The following command numbers every second consecutive blank line, using page delimiters
of ˜!:
nl -l2 -ha -ba -fa -nrz -v10 -i10 -d˜! file
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
1-394 Commands and Utilities