Hi Peter,

> whence processing is passed over to PSPIC.

Can't argue with a post that uses `whence'.  Would be nice to see a bit
more `{,t,w}hither'.

> .  sy pdfinfo @$1 | \
> grep "Page *size" | \
> sed -e 's/Page *size: *\\([[:digit:].]*\\) *x *\\([[:digit:].]*\\).*$/\
> .nr pdf-wid (p;\\1)\\n\
> .nr pdf-ht  (p;\\2)/' \
> > /tmp/pdfpic\n[$$]

sed can do grep's work here.  Simplest way would be to drop grep and
pass -n to sed, then append `p' to the trailing slash of the s///.
Alternatively, without using -n, something based on

    /foo/!d; s//bar/

since any empty search pattern uses the last non-empty one.

Cheers, Ralph.

Reply via email to