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.

pr<br />

Files<br />

default for n is 5. The character char separates the number from the line;<br />

this defaults to the tab character. If char is the same as the input tab<br />

character, pr follows the number with the spaces needed to get to the next<br />

tab stop. pr may in turn replace these spaces with the output tab character<br />

if you specified the –i option. For multicolumn output, pr adds line numbers<br />

to each column. The –m option gives the line number for the first column<br />

only.<br />

–o n Offsets each line of output by n character positions.<br />

–p Pauses before the beginning of each page if output is to a terminal device.<br />

pr sounds the bell and waits for a carriage return from the controlling<br />

workstation (not the input files).<br />

–r Suppresses error messages due to failures when opening files.<br />

–s[char]<br />

Prints each column at its correct length. The character char separates<br />

columns. The default value for char is the tab character. This character is<br />

never replaced by the output tab character. Normally pr pads each column<br />

with spaces or truncates it to the exact column width. Unless the –w option<br />

is also used, –s resets the page width to 512 column positions.<br />

–t Does not print the headers and trailers, and quits after the last line of the<br />

file—it does not display any extra lines.<br />

–W Folds lines at the column width when you do not specify the –s option; pr<br />

treats each separate part of the line as a separate line.<br />

–w n Sets the width of the page to n column positions. If you do not specify this<br />

option, the default page width is 72 (if you did not specify –s option) or 512<br />

(if you did specify –s). This page width does not normally apply to<br />

single-column output; however, single-column output with the –W option<br />

does use this width.<br />

pr uses the following file:<br />

/dev/tty<br />

For prompting.<br />

Environment Variables<br />

pr uses the following environment variable:<br />

Localization<br />

TZ Contains the local time zone. pr uses this value when displaying times in<br />

header lines.<br />

pr uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_TIME<br />

v NLSPATH<br />

See Appendix F for more information.<br />

510 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!