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.

pg — Display files interactively<br />

Format<br />

Description<br />

Options<br />

pg [–cefnst] [–p prompt] [– screen] [+line] [+/pattern/] [file ...]<br />

Note: The pg utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, it is recommended that the more utility be used instead because it<br />

may provide greater functionality and is considered the standard for portable<br />

<strong>UNIX</strong> applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

pg displays input files or piped output from another command, a screenful at a time.<br />

If you do not specify any files, the standard input (stdin) is read. Any file named –<br />

specifies the stdin.<br />

“<strong>Command</strong>s” on page 506 lists commands that can be entered at page and file<br />

breaks.<br />

–c Clears the screen before displaying each new window.<br />

–e Eliminates the (EOF): prompt at the end of each file.<br />

–f Does not fold lines. Usually, lines longer than the screen width, as given by<br />

the environment variable COLUMNS are folded into multiple lines. This<br />

option may be useful for files containing device-specific escape sequences.<br />

–n Executes interactive commands immediately after receiving the command<br />

character. This works for most commands. Usually, you must press <br />

for interactive commands.<br />

–p string<br />

Sets the prompt string that appears at the end of each screen of text to<br />

string. The default prompt is a colon (:). If string contains the characters %d,<br />

pg replaces those characters with the current page number as in [Page<br />

%d].<br />

–s Displays all interactive command prompts in standout mode (most often<br />

reverse video) on the screen.<br />

–t Does not save input in a temporary file. Usually, if any of the inputs is not<br />

directly seekable (as is the case for a serial device or pipe), pg reads input<br />

and saves it in a temporary file so that it can be reviewed. Because of this,<br />

you cannot scan backwards when viewing such input. This option is also<br />

recommended when reading a larger amount of data from a stream that<br />

cannot be accommodated on disk.<br />

–screen<br />

Sets the number of lines displayed in each screen to n lines. If you do not<br />

select this option, the number of lines displayed is one less than the<br />

number of lines on the screen as given by the environment variable LINES.<br />

“<strong>Command</strong>s” on page 506 discusses the w command.<br />

+line Starts printing at line n of the first file. The default is to start printing at line<br />

1.<br />

+/pattern/<br />

Starts printing at the line containing the first occurrence of the extended<br />

regular expression pattern.<br />

Chapter 2. Shell command descriptions 505<br />

pg

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

Saved successfully!

Ooh no, something went wrong!