z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Browsing files with formatting

z/OS UNIX System Services User's Guide
SA23-2279-00

Using the shell: The term formatting refers to controlling the appearance of the file contents when you browse or print them. You can use the pr command to browse (or print to standard output) a formatted file:
pr file

You can specify more than one file name, each separated from the other by a space.

If you do not specify any options, pr formats the file into single-column, 66-line pages, each with a 5-line header. The first 2 lines are blank. On the 3rd line appear the file's path name, the date of its last modification, and the current page number. The next 2 lines are blank, and the text of the file begins on the 6th line. At the end of each page, there are 5 blank lines. There are numerous options for the pr command; for example, you can specify the page number where the display is to begin, specify output in columns, or change the width of the displayed page.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014