examples of pr

kemp at noscvax.UUCP kemp at noscvax.UUCP
Thu May 3 06:37:07 AEST 1984


-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.
             - - - - - - * - - - - - -



More information about the Comp.unix mailing list