#!/bin/sh if [ $# != 1 ]; then echo "Usage: chopper NNN" echo " where NNN is the desired run number" exit 1 fi inlist=`ls ../*/*$1*.tif` for infile in $inlist do outfile=${infile##*/} outfile=${outfile%.tif}.jpg convert -crop 260x150+660+560 -modulate 120,90 $infile $outfile done