nl — Line Numbering Filter

Synopsis

/usr/bin/nl [-p][-b[type]][-d[delim]][-f[type]] [-h[type]][-i[incr]] 
  [-l[num]][-n[format]][-s[sep]][-w[width]][-v[startnum]][file] 
/usr/xpg4/bin/nl [-p][-b type][-d delim][-f type][-h type][-i incr] 
  [-l num][-n format][-s sep][-w width][-v startnum][file] 

Description

Use the nl command to number the lines of a file. The nl command divides pages into logical segments and restarts the line numbering at the top of each new page. A logical page consists of a header, a body, and a footer section. Empty sections are valid.

The nl command reads lines from the named file, or the standard input if no file is named, and reproduces the lines on the standard output. Lines are numbered on the left in accordance with ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.