sam2p bulk conversion script
I have lots of .jpg files to convert to .eps in a folder, not sure if there is a batch convert option in sam2p — did not see one in quick glance, hence wrote the following. The following was a bulk conversion bash script that worked for me…
#!/bin/bash
# makeeps.sh
# convert jpg files to eps
match=".jpg"
replace=".eps"
for i in $( ls *.jpg* );
do
src=$i
tgt=$(echo $i | sed -e "s/$match/$replace/")
sam2p $src $tgt
done