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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exit Values<br />

Portability<br />

Related Information<br />

nohup, renice, tcsh<br />

nl — Number lines in a file<br />

Format<br />

Description<br />

Options<br />

If nice invokes the command-line, it exits with the exit status returned by<br />

command-line; otherwise its exit status is one of the following:<br />

1-125 An error occurred in the nice utility.<br />

126 nice could not invoke command-line.<br />

127 nice could not find the utility specified in command-line.<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

nl [–btype] [–dxy] [–ftype] [–htype] [–in] [–ln] [–nfmt] [–p] [–ssep] [–v[n]] [–w[n]] [file]<br />

nl is a filter that numbers lines in a single file. If you do not specify file on the<br />

command line, the standard input is used.<br />

The input is displayed as a stream of text lines, possibly divided into logical pages<br />

by separators. In turn, each page consists of a header, body, or footer, in that<br />

order. Any missing part is assumed to be empty. Using the default page delimiter<br />

character of \ and :, lines consisting entirely of the following combinations are<br />

logical page part delimiters and are not numbered.<br />

Input Line<br />

Starts<br />

\:\:\: Page header<br />

\:\: Page body<br />

\: Page footer<br />

–btype<br />

Specifies the numbering type for each page body. The numbering type is<br />

one of the following:<br />

a Numbers all lines<br />

n Does not number any lines<br />

pregexp<br />

Numbers only those lines that contain the basic regular expression<br />

regexp. For more information about regexp, see Appendix C.<br />

t Numbers only those lines that are not empty. An empty line consists<br />

of only a newline character.<br />

The default body numbering type is t.<br />

–dxy Changes the default delimiter characters (\ and :) to characters x and y. If<br />

only x is specified, only the first delimiter character is changed.<br />

nice<br />

Chapter 2. Shell command descriptions 453

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

Saved successfully!

Ooh no, something went wrong!