#! /bin/sh file=$1 if [ "$file" = "" ] then echo "Usage: p " exit 1 fi if [ ! -r $file ] then echo "Error: $file not found." exit 1 fi root=`echo $file | sed 's/\..*$//'` a2ps --line-numbers=1 -o ${root}.ps $file # gsprint is part of ghostgum and gets installed into # C:\Program Files\Ghostgum\gsview by default. gsprint ${root}.ps rm -f ${root}.ps