How to print last <n> pages of a file?
    Peter Scott 
    pjs at euclid.jpl.nasa.gov
       
    Fri May  3 02:23:55 AEST 1991
    
    
  
How can I print the last <n> pages of a text file?  Said file has form
feeds at random places, so "tail -132 file | lpr" won't work.  Now, I tried
"pr file | tail -132" but that includes the 5-line headers and footers
that I don't want and don't get with "lpr file".  So I tried 
"pr -t file | tail -132" but the -t option turns off page filling so the
form feeds aren't expanded :-(.
Any suggestions?  SunOS 4.1 over here.
-- 
This is news.  This is your       |    Peter Scott, NASA/JPL/Caltech
brain on news.  Any questions?    |    (pjs at euclid.jpl.nasa.gov)
    
    
More information about the Comp.unix.questions
mailing list