Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site noscvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!decvax!ittvax!dcdwest!sdcsvax!noscvax!kemp From: kemp@noscvax.UUCP Newsgroups: net.unix Subject: examples of pr Message-ID: <426@noscvax.UUCP> Date: Wed, 2-May-84 16:37:07 EDT Article-I.D.: noscvax.426 Posted: Wed May 2 16:37:07 1984 Date-Received: Fri, 4-May-84 02:29:51 EDT Organization: Naval Ocean Systems Center Lines: 20 -a non-blank line- Here are three examples of using pr on a 4.2bsd system. Does anyone have comments? % pr -h "The Title is goes here..." inputfile will print-format contents on inputfile. Headers will look like this: Mar 17 14:40 1984 The Title goes here... Page 1 % pr -8 -w80 -t -l1 infile will reformat infile into 8 columns, with 80 characters across the screen, suppressing blank lines and header lines. The -l1 is a trick. pr has a hard time with multiple columns unless the -l1 is there. (It specifies screen length of one line!) % pr -m -t filex filex > filexx will merge (horizontally across lines) the contents of filex with itself omitting heading line and blank lines, and store the results into filexx. - - - - - - * - - - - - -