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.

pg<br />

$TMPDIR/pg*<br />

Temporary files to allow backward reading. You can specify a different<br />

temporary directory using the TMPDIR environment variable.<br />

Environment Variables<br />

pg uses the following environment variables:<br />

COLUMNS<br />

Contains the width of the screen in columns.<br />

LINES Contains the number of lines on the screen.<br />

TMPDIR<br />

Contains the pathname of the directory where temporary files reside.<br />

Portability<br />

X/Open Portability Guide, <strong>UNIX</strong> <strong>System</strong> V.<br />

This implementation does not handle doublebyte characters.<br />

The –screen and –+line options are extensions to the XPG standard.<br />

Related Information<br />

alias, ed, head, more, sh, tail, vi<br />

See Appendix C for more information about regexp.<br />

pr — Format a file in paginated form and send it to standard output<br />

Format<br />

Description<br />

Options<br />

pr [–adFfprtW] [–n | –c n | –m] [–e [char][gap]] [–H header-fmt] [–h header]<br />

[–i[char] . [gap]] [–l n] [–n[char] [n]] [–o n] [–s[char]] [–w n] [+n] [file ...]<br />

pr prints the specified files on standard output (stdout) in a paginated form. If you<br />

do not specify any files or if you specify a filename of –, pr reads the standard<br />

input. By default, pr formats the given files into single-column 66-line pages. Each<br />

page has a five-line header. By default, the third line contains the file’s pathname,<br />

the date it was last modified, and the current page number; the other lines are<br />

blank. A five-line trailer consists of blank lines.<br />

If you specify multiple columns, pr places its output in columns of equal width<br />

separated by at least one space, truncating each line to fit in its column. Input lines<br />

can be ordered down the columns or across the page on output; or different<br />

columns can each represent different files.<br />

+n Starts printing with the nth page of each file; that is, skips the first n–1<br />

pages. The default for n is 1.<br />

–n Prints 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 the –m option.<br />

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