This script removes old jpegs from a folder called output and then converts post scripts into jpeg format and saves to output folder:

rm -f output/*.jpeg
for i in $(find . -name '*.ps'); do convert $i -quality 100 -compress LossLess output/$i.jpeg; done
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License