[GRASS-user] batch export

Martin Wegmann wegmann at biozentrum.uni-wuerzburg.de
Mon Aug 25 13:05:20 EDT 2008


On Sonntag, 24. August 2008 17:13:17 Martin Landa wrote:
> Hi,
>
> 2008/8/24 Bruce Raup <brauplists at gmail.com>:
> > If '*index*' is meant to refer to grass rasters, then you need to say
> > something like:
> >
> > for out in `g.list rast` ; do
> >  if [ `echo $out | grep index` ] ; then
> >    # process $out
> >  fi
> > done
>
> you don't need to call `grep` here, just use "pattern" option of g.mlist
>
> g.mlist rast pattern=*index*

thanks - this worked:

for x in "`g.mlist pattern='*.asc' sep= `" ; do ....

Martin




More information about the grass-user mailing list