Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!euclid.jpl.nasa.gov!pjs From: pjs@euclid.jpl.nasa.gov (Peter Scott) Newsgroups: comp.unix.questions Subject: How to print last pages of a file? Message-ID: <1991May2.162355.779@elroy.jpl.nasa.gov> Date: 2 May 91 16:23:55 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: pjs@euclid.jpl.nasa.gov Followup-To: comp.unix.questions Organization: Jet Propulsion Laboratory, NASA/Caltech Lines: 12 Nntp-Posting-Host: euclid.jpl.nasa.gov How can I print the last 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@euclid.jpl.nasa.gov)