[GRASS-user] creating loops in grass

goldneaa at onid.orst.edu goldneaa at onid.orst.edu
Mon Jul 9 18:43:01 EDT 2007


I have been using the directions for creatings loops in GRASS, but  
have not been able to get a correct script.  Below is what i am  
inputing and what I am recieving out
Mapset <PERMANENT> in Location <globe_final>                            
                   GRASS 6.3.cvs > for raster in `g.mlist rast  
pattern="ts_*"` ; do r.info -r $raster done
csh: for: Command not found.
csh: do: Command not found.

I have also tried using the ls function to create a loop and recieved  
the output

Mapset <PERMANENT> in Location <globe_final>                            
                   GRASS 6.3.cvs > for raster in `ls  
/Volumes/ar4/gis/globe_final/PERMANENT/hist/ts_*` ; do r.info $raster  
done
csh: for: Command not found.
csh: do: Command not found.
Any advice for what I can do to fix this problem.
Aaron




More information about the grass-user mailing list