[GRASSLIST:7143] i.group output suitable for further processing?

Vincent Schut vincent at ecovla.nl
Mon Jun 13 08:42:36 EDT 2005

Hi all,

I'm trying to write some scripts that will process all raster files that
are referenced in a group. What I want to do is simple 'for $IMAGE in
`i.group -l group=<group>`' bash scripting. However, the output of
i.group -l is not suitable for this kind of thing: too much bloat. What
I would like to have is only the raster names, and nothing more. Anyone
knows a simple solution? O should I try to hack i.group and add a -b
switch to generate output suitable for batch processing?


PS: example output of i.group -l:

GRASS 6.1.cvs (asianislands at D10_patched):~ > i.group -l
group [20010711_patched] references the following cellfiles
20010711_1_patched in D10_patched    20010711_2_patched in D10_patched
20010711_3_patched in D10_patched    20010711_4_patched in D10_patched
GRASS 6.1.cvs (asianislands at D10_patched):~ >

More information about the grass-user mailing list