Re: get number of pages of a PostScript file

2001-05-04 Thread Rob Mahurin
On Tue, May 01, 2001 at 03:04:41PM +0200, Iwan Mouwen wrote: > * Rob Mahurin <[EMAIL PROTECTED]> [010428 23:09]: > > 10:48 $ psselect -p _1 zeeman.ps > /dev/null > > [8] Wrote 1 pages, 86473 bytes > > Shouldn't that be > psselect -p - file.ps > /dev/null > instead? > > [EMAIL PROTECTED

Re: get number of pages of a PostScript file

2001-05-01 Thread Iwan Mouwen
* Rob Mahurin <[EMAIL PROTECTED]> [010428 23:09]: > 10:48 $ psselect -p _1 zeeman.ps > /dev/null > [8] Wrote 1 pages, 86473 bytes > Shouldn't that be psselect -p - file.ps > /dev/null instead? [EMAIL PROTECTED]:~/tmp$ psselect -p _1 report.ps >/dev/null [11] Wrote 1 pages, 68447 bytes

Re: get number of pages of a PostScript file

2001-04-28 Thread Walt Mankowski
On Sat, Apr 28, 2001 at 07:15:37PM -0300, John R Lenton wrote: > > grep ^%%Pages file.ps|awk '{ print $2 }' > > any idea why this is 2x as fast as the equivalent >awk '/^%%Pages/ { print $2 }' file.ps Because grep, being a compiled program, can do file I/O faster than awk, which is interprete

Re: get number of pages of a PostScript file

2001-04-28 Thread John R Lenton
On Sat, Apr 28, 2001 at 01:17:46PM +0200, Waldemar Brodkorb wrote: > Hello Alexander, > > * Alexander Steinert wrote: > > > What's the fastest way to do this on the command line? > > I think there are more than thousand solutions ;-) > grep ^%%Pages file.ps|awk '{ print $2 }' any idea why this

Re: get number of pages of a PostScript file

2001-04-28 Thread Rob Mahurin
On Fri, Apr 27, 2001 at 02:41:04PM +0200, Alexander Steinert wrote: > What's the fastest way to do this on the command line? I do: 10:48 $ psselect -p _1 zeeman.ps > /dev/null [8] Wrote 1 pages, 86473 bytes Rob -- It seems to make an auto driver mad if he misses you.

Re: get number of pages of a PostScript file

2001-04-28 Thread Waldemar Brodkorb
Hello Alexander, * Alexander Steinert wrote: > What's the fastest way to do this on the command line? I think there are more than thousand solutions ;-) grep ^%%Pages file.ps|awk '{ print $2 }' cya Waldemar -- * A good website for linuxsoftware:| (o_ * * http://www.freshmea

get number of pages of a PostScript file

2001-04-28 Thread Alexander Steinert
What's the fastest way to do this on the command line? TIA Stony