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.

Examples<br />

Localization<br />

Exit Values<br />

Files<br />

window, but this can be changed by an optional character at the end of the<br />

search command. The letter t is the default and displays the line at the top<br />

of the window, m displays it in the middle of the window, and b displays it in<br />

the bottom of the window. When no letter is present, pg uses the last letter<br />

entered (or .t if no letter has been entered). Whether or not you specified<br />

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

[i]?pattern?[tmb], [i]^pattern^[tmb]<br />

Is similar to the previous command, but searches backward instead of<br />

forward. The search starts just before the current window.<br />

The following interactive commands illustrate the flexibility of pg. Suppose you enter<br />

the command:<br />

pg –n *.c<br />

and that there are a large number of source files in the current directory:<br />

1 Redisplays the first screenful of the current file.<br />

–4 Goes back 4 windows in the current file and displays a screenful of text.<br />

p Displays the first screenful of the previous file.<br />

10w Sets the screen size to 10 lines.<br />

/Fred/m<br />

Finds the first line containing<br />

Fred<br />

searching forward from the current position in the file, and displays a screen<br />

with that line in the middle of the screen.<br />

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

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Unknown command-line option<br />

v Insufficient memory<br />

v Inability to create a temporary file<br />

v Inability to access the terminal<br />

v Missing string after a –p option<br />

pg uses the following file:<br />

pg<br />

Chapter 2. Shell command descriptions 507

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

Saved successfully!

Ooh no, something went wrong!