#! /bin/csh -f

sed -e '1,$s/savedstate restore$/savedstate restore showpage/' < $1 > /tmp/$1 \
  && ghostview /tmp/$1
