Specifications

1-18
Guide to Printers and Printing
This command adds page headings to prog.c and sends it to the qprt command. The
heading consists of the date the file was last modified, the file name, and the page
number.
To specify a title for a file named prog.c, enter:
pr –h ”MAIN PROGRAM” prog.c | qprt
This prints prog.c with the title MAIN PROGRAM in place of the file name. The
modification date and page number are still printed.
To print a file named word.lst in multiple columns, enter:
pr –3 word.lst | qprt
This prints the word.lst file in three vertical columns.
To print several files side by side on the paper, enter:
pr –m –h ”Members and Visitors” member.lst visitor.lst | qprt
This prints member.lst and visitor.lst side by side with the title Members and
Visitors.
To modify a file named prog.c for later use, enter:
pr –t –e prog.c > prog.notab.c
This command replaces tab characters in prog.c with spaces and puts the result in
prog.notab.c. Tab positions are at columns 9, 17, 25, 33, and so on. The –e flag tells
the pr command to replace the tab characters; the –t flag suppresses the page
headings.
To print a file named myfile in two columns, in landscape, and in 7–point text, enter:
pr –l66 –w172 –2 myfile | qprt –z1 –p7