#!/bin/sh

for name in [0-9]*.eps ; do
  echo $name
  jpg=`echo $name | awk 'BEGIN{FS=".";}{s=$1; for(i=2;i<=NF-1;i++){s=s "." $i;} print s;}'`
  convert -density 300 -quality '100%' $jpg.eps JPG:- | convert -geometry '50%' -quality '100%' JPG:- $jpg.jpg
done


