[GRASS-user] Help in scripting

Luís Ferreira lferreira75.1 at gmail.com
Fri Apr 10 13:31:37 EDT 2009


Can anyone help me correcting a little loop script for mapcalc?

I'm trying:
for map in 'g.mlist pattern="L71204033_03320090313_*" sep=,'; do
echo "$map"
	r.mapcalc 'GC_${map}' = '${map}@20090313 *
L7G204033_03320090313 at 20090313_GAP'
done

It gives me:

GRASS 6.4.0RC3 (L7ETM204033):~ > '/media/WORKSPACE_2/Workspace/x.sh' 
g.mlist pattern="L71204033_03320090313_*" sep=,
syntax error, unexpected INTEGER, expecting VARNAME or NAME
Parse error


Thank you in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090410/2bcd3c31/attachment.html


More information about the grass-user mailing list