Re: [GRASS-user] batch export

2008-08-26 Thread Glynn Clements
Martin Wegmann wrote: > When I do: > > for rast in "`g.mlist pattern'*.asc' sep=" "`"; do > echo "$rast.test"; done > > I get: > > name1.asc name2.asc name3.asc.test > > but I need: > > name1.asc.test name2.asc.test name3.asc.test > > any idea how to achieve that? Don't put double quotes a

Re: [GRASS-user] batch export

2008-08-26 Thread Martin Wegmann
On Dienstag, 26. August 2008 17:13:18 Martin Landa wrote: > 2008/8/26 Martin Wegmann <[EMAIL PROTECTED]>: > >> > > 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, j

Re: [GRASS-user] batch export

2008-08-26 Thread Martin Landa
2008/8/26 Martin Wegmann <[EMAIL PROTECTED]>: >> > > 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*

Re: [GRASS-user] batch export

2008-08-26 Thread Martin Wegmann
On Montag, 25. August 2008 19:05:20 Martin Wegmann wrote: > On Sonntag, 24. August 2008 17:13:17 Martin Landa wrote: > > Hi, > > > > 2008/8/24 Bruce Raup <[EMAIL PROTECTED]>: > > > If '*index*' is meant to refer to grass rasters, then you need to say > > > something like: > > > > > > for out in `g.

Re: [GRASS-user] batch export

2008-08-25 Thread Martin Wegmann
On Sonntag, 24. August 2008 17:13:17 Martin Landa wrote: > Hi, > > 2008/8/24 Bruce Raup <[EMAIL PROTECTED]>: > > 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 > ># proce

Re: [GRASS-user] batch export

2008-08-24 Thread Martin Landa
Hi, 2008/8/24 Bruce Raup <[EMAIL PROTECTED]>: > 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 "patter

Re: [GRASS-user] batch export

2008-08-24 Thread Bruce Raup
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 If the raster name should begin with 'index' and not just contain the string, you can say if [ `echo $out |

[GRASS-user] batch export

2008-08-24 Thread Martin Wegmann
Hello, I have a script which imports and processes my data but so far I failed to export them again. I looked into Dylans blog concerning batch projection [1] but this did not help so far. The problems is within this statement: for out in *index* ; do r.out.arc --q in=$out out=${out}_resul