Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (m - o) nl(1)
NAME
nl - Numbers lines in a le
SYNOPSIS
nl
[-b type ]
[-d delimiter1[delimiter2 ]]
[-f type ]
[-h type ]
[-i number ]
[-l number ]
[-n format ]
[-p ]
[-s [separator ]]
[-v number ]
[-w number ]
[le ]
FLAGS
Use the following ags to change the default settings. If a particular ag is not specied, nl uses
its default value.
-b type Species which logical page body section lines to number. The recognized values for
type are:
a Numbers all lines
t Does not number blank lines (the default value for -b)
n Does not number any lines
ppattern Numbers only those lines containing the basic regular expression
specied by pattern
-d delimiter1[delimiter2 ]
Uses delimiter1 and delimiter2 as the delimiter characters for the start of a logical page
section. The two default characters are \: (backslash followed by a colon). You can
specify either one or two characters after the -d ag. If you enter only one character
after -d, the second delimiter character remains the default (:). If you want to use a
backslash as a delimiter, you must enter two backslashes (\\).
-f type Species which logical page footer lines to number. The values recognized for type
are the same as those for -b type. The default value for type in the -f ag is n (no lines
numbered).
-h type Species which logical page header lines to number. The values recognized for type
are the same as those for -b type. The default value for type in the -h ag is n (no lines
numbered).
-i number
Increments logical page line numbers by number. The default value of number is 1.
-l number
Counts number blank lines as 1. For example, -l 3 numbers only the third adjacent
blank (if the appropriate -h a, -b a,or-f a ag is set). The default value of number is 1.
527188-007 Hewlett-Packard Company 639