1 2 3 4 5 6 7 8 9 10
#!/bin/sh set -eu [ "$#" -gt 0 ] || exit 1 for i in "$@" do gs -dPDFSETTINGS=/prepress -o "$(basename "$i" .pdf).gs.pdf" -sDEVICE=pdfwrite "$i" done