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<br />

<strong>Command</strong>s<br />

This is described in Appendix C.<br />

Depending on the options you specify, pg pauses between windows (screenfuls) of<br />

text, at the end of each file and before starting any file after the first. At these<br />

pauses, pg prompts you to enter a command. To read the file, type the command<br />

ENTER (newline or Return) at each prompt.<br />

An optional sign (+ or –) followed by an optional numeric address can precede the<br />

following commands. Addresses work in multiples of screen displays: for example,<br />

an address of +2 displays the second next screenful. Usually, an unsigned address<br />

implies direct addressing (measured from the beginning of the file). A signed<br />

address implies relative addressing in the file; a command beginning with a + scans<br />

forward and one beginning with a – scans backward from the current position.<br />

You can edit commands interactively with the standard erase and kill characters.<br />

These are the interactive commands:<br />

h Prints a summary of the interactive commands.<br />

q, Q Exits immediately from pg.<br />

!command<br />

Executes the string command as if it were typed to the default command<br />

interpreter (as in ed). Whether or not you specified the –n option, you must<br />

end this command with a newline.<br />

[[±]n] ENTER, [[±]n] SPACEBAR<br />

Without a specified address, displays the next window of text. With an<br />

address, displays the nth next window of text.<br />

[[±]n]d, [[±]n]CRTL–D<br />

Scrolls a half screen of text. The address is measured in half screenfuls<br />

and defaults to the next half screen.<br />

[[±]n]l With no address, displays the next line of the file. With an address, it<br />

displays a screenful starting at the addressed line.<br />

$ Displays the last screenful of text in the file.<br />

, .<br />

Redisplays the current displayed window of text.<br />

s file Saves the entire contents of the current file in file. Whether or not you<br />

specified the –n option, you must end this command with a newline.<br />

[n] n Displays the first screenful of the next file. The address (n) is actually the<br />

nth next file, counting from the current file. If present, n must be unsigned.<br />

[n] p Displays the first screenful of the previous file. The address (n) is actually<br />

the nth previous file, counting from the current file. If present, n must be<br />

unsigned.<br />

[n] w Scrolls another window of text. The argument, n (which must be unsigned),<br />

sets the window size to n and displays the next window of text.<br />

[i]/pattern/[tmb]<br />

Searches forward within the current file for the ith next occurrence of a line<br />

matching the regular expression pattern (default i is 1, the next matching<br />

pattern). The search starts right after the current window and continues to<br />

the end of the file. Usually, the matching line is displayed at the top of the<br />

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