Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!dog.ee.lbl.gov!ucbvax!GRISSOM.LARC.NASA.GOV!kludge From: kludge@GRISSOM.LARC.NASA.GOV (Scott Dorsey) Newsgroups: comp.laser-printers Subject: Re: Counting PostScript Pages Keywords: postscript, accounting Message-ID: <9103141524.AA00940@crayola.cs.UMD.EDU> Date: 14 Mar 91 14:35:45 GMT References: <9103132037.AA25632@crayola.cs.UMD.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Organization: NASA Langley Research Center Lines: 13 Approved: laser-lovers@brillig.umd.edu In article <9103132037.AA25632@crayola.cs.UMD.EDU> jlg@UNCCVAX.UNCC.EDU (john l grant) writes: > >Does anyone have a filter program that will count Postscript >pages before the file goes to the printer? I've taken a quick >look at the Postscript language and believe such a program would >be possible. It's certainly more involved that looking at the >size of the file, but definately possible. how about egrep showpage | wc -l Crude but fairly efficient. --scott