Simple shell script arithmetic
With various SU modules (e.g. velocity analysis) it is neccessary to loop through a number of locations. This can be done within shells and cshells
Example :
1. Incrementing shot by 100
shotmin=6000
shotmax=7000
shotinc=100
shot=$shotmin
while [ $shot -le $shotmax ]
do
echo "shot is now $shot"
shot = "`expr $shot + $shotinc`"
done
See also :