Untitled
By: a guest | Mar 7th, 2008 | Syntax:
Bash | Size: 0.24 KB | Hits: 17 | Expires: Never
#!/bin/bash
while test $# -gt 0 ; do
case $1 in
*.pdf)
gs -dNOPAUSE -dNOCACHE -dBATCH \
-sDEVICE=epswrite -sOutputFile=${1%.pdf}.eps $1
;;
*)
echo "File $1 not recognised, skipping"
;;
esac
shift
done
# end of script.