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
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
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*
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.
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
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
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 |
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