[GRASS-user] csh syntax

goldneaa at onid.orst.edu goldneaa at onid.orst.edu
Thu Jul 12 10:57:13 EDT 2007


I found the bash command for adding up rasters as
$str="r.mapcalc map=ts.1"
$for i in `seq ts.2 ts.120`; do
str=$str+" + map$i", done

I need this exact command, but in csh I have been playing with the  
syntax and cannot seem to get it to work.  I know I will switch out  
"for i in" for like foreach, but the "str" command is not  
interchangable, and neither is the "seq" command.

Any suggestions are greatly appreciated.
Aaron




More information about the grass-user mailing list