[GRASSLIST:5863] very short script help

javier garcia rn001 at cebas.csic.es
Mon Feb 21 06:12:00 EST 2005


Please, I don't have any idea of bash and I'm trying to do a very short script 
to alter the region for a set of descending resolutions, but I must be doing 
someting wrong:

--------------
#!/bin/sh

i=33
while [ $i -ge 1 ]
do
 resol= `expr 3.3 / $i`
 g.region n=9.9 s=0 e=3.3 w=0 res=$resol 
 echo  "resolution is $resol"
 i=`expr $i - 1`
done
--------------

Please, could you help with this?

Best regards,

Javier




More information about the grass-user mailing list