[GRASSLIST:4773] Re: batch jobs
    Stephan Holl 
    sholl at gmx.net
       
    Fri Oct 18 03:32:38 EDT 2002
    
    
  
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At Fri, 18 Oct 2002 16:44:56 +0930 M.Wegmann wrote:
Hello M.Wegmann
> 
> r.statistics base=killarney cover=$temp method=.... 
what about writing it in quotes: "$temp" ?!
this should work.
> and another thing, I want to do a loop for all images starting with
> the letter b,d and t.
> 
> eg
> 
> for x in "[a,d,t]*"
> 
> do
> 
> .....
> r.mapcalc "temp=int($x*1000000)"
> ....
> 
> done
create a list of names and use the for-loop on the list:
<untested>
LISTE=`ls $GISBASE/cell | grep "^[a,d,t]"`
for i in $LISTE 
  do
....
  done
</untested>
hope that helps
cheers
  Stephan
- -- 
Stephan Holl
GnuPG Key-ID: 11946A09
ICQ# 117277975 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9r7kWEg9SKhGUagkRAlUNAJ9Kija3Aiv1wXc39JJkaZQMNQCiewCgt8RR
+HCoXWOxiPoW0p+fjjWQhnQ=
=OpXE
-----END PGP SIGNATURE-----
    
    
More information about the grass-user
mailing list