16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

nl<br />

Example<br />

Localization<br />

Messages<br />

Portability<br />

–ftype Specifies the page footer numbering type (see the –b option). The default<br />

type is n.<br />

–htype<br />

Specifies the page header numbering type (see the –b option). The default<br />

type is n. (The lines are not numbered.)<br />

–in Sets the line increment to n rather than the default value of l.<br />

–ln When the page numbering type is (all), blank lines are treated specially.<br />

Every nth consecutive blank line is numbered. If you do not specify this<br />

option, n defaults to 1 and every blank line is numbered.<br />

–nfmt Specifies the line numbering format, which must be one of the following:<br />

n Right-aligned line number, padded to width (see –w) on the left with<br />

spaces (the default format).<br />

rz Right-aligned line number, padded on left with zeroes.<br />

ln Left-aligned line number, padded on right with spaces.<br />

–p Specifies continuous page numbering across page boundaries. By default,<br />

nl restarts numbering (as in the next option) at each new page.<br />

–ssep The string sep is printed to separate the line number from the text of the<br />

line being numbered. When this option is not specified, this separator is a<br />

single tab character.<br />

–vn Starts numbering for each new page at n. If you do not specify this option,<br />

page numbering starts at 1.<br />

–wn Sets the width of the line number in the output to n. If you do not specify n,<br />

the default is 6.<br />

The following command numbers every second consecutive blank line, using page<br />

delimiters of ~!:<br />

nl –l2 –ha –ba –fa –n rz –v10 –i10 –d~! file<br />

nl uses the following localization environment variable:<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Incorrect command-line argument<br />

v More than one file name was specified<br />

v Unable to open the file<br />

v Incorrect regular expression in –b, –f, –h<br />

v Incorrect numbering type<br />

v Badly formed number in a command-line option<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide.<br />

454 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!