[GRASS-user] batch export

Martin Landa landa.martin at gmail.com
Sun Aug 24 11:13:17 EDT 2008


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*

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-user mailing list