#!/bin/bash
 
OPTIONS="-dOptimize=true" 
#OPTIONS="-dOptimize=true -sPAPERSIZE=11x17"
#OPTIONS="-r2400"

FILES=$(ls -1 *.ps)
 
for file in $FILES
do
  ps2pdf $OPTIONS $file
done

#ps2pdf $OPTIONS $file && rm $file 