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.

–a Orders input lines across the page on output, instead of down. You should<br />

use this option only with –n.<br />

–c n Displays n columns of output. When you specify this option, pr behaves as<br />

though you had also specified the –e and –i options. When you specify<br />

both this option and –t, pr uses the minimum number of lines possible to<br />

display the output. Do not specify this option with –m.<br />

–d Produces double-spaced output.<br />

–e[char][gap]<br />

Expands each occurrence of the input tab character to a string of spaces so<br />

that the following character has the next column position which is a positive<br />

multiple of gap, plus 1. If you do not specify gap, or if it is zero, pr assumes<br />

that gap has the value of 8. If you specify the nondigit character char, pr<br />

treats it as the input tab character. Otherwise, pr uses the standard tab<br />

character.<br />

–F Uses form feeds to separate pages. pr normally separates pages by<br />

sending a series of characters to fill the length of a page.<br />

–f Uses form feeds to separate pages. When output is to a terminal, pr<br />

sounds the bell and waits for you to type a carriage return before displaying<br />

the text. pr normally separates pages by sending a series of <br />

characters to fill the length of a page.<br />

–H header_fmt<br />

Lets you customize your header line by specifying a format with the string<br />

header_fmt. pr recognizes the following special formatting commands:<br />

%c Date and time<br />

%F Current filename, or header string given by –h<br />

%P Page number<br />

%L Line number<br />

%D Date<br />

%T Time<br />

%u Current user name<br />

The default header format is equivalent to the option:<br />

-H "%c %F Page %P"<br />

–h header<br />

Uses the header string instead of the filename on each succeeding page<br />

header.<br />

–i[char][gap]<br />

Replaces white space with tabs on output. char, if given, is the output tab<br />

character. The default is the tab character. pr sets tabs every gap positions;<br />

the default for gap is 8. If this tab character differs from the input tab<br />

character and the actual data contains this tab character, the result is liable<br />

to be quite a mess.<br />

–l n Sets the number of lines per page of output. The default is 66. The actual<br />

number of lines printed per page is this number less 5 for the header and 5<br />

for the trailer. If n is less than 10 (the number of lines needed for the<br />

header and the trailer), pr displays neither the header nor the trailer.<br />

–m Prints each file in its own column down the page. This overrides the –a<br />

option, forcing the –n option to be the number of files given. When you also<br />

specify the –n option, it gives line numbers for the first column only.<br />

–n[char][n]<br />

Numbers the lines of each file. Each number takes up n positions; the<br />

pr<br />

Chapter 2. Shell command descriptions 509

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

Saved successfully!

Ooh no, something went wrong!