[GRASSLIST:4771] Re: batch jobs
Tom Z. Meinlschmidt
tm at salome.datron.cz
Fri Oct 18 03:26:31 EDT 2002
try
for name in {a,b,c}*;do something; done
tom
On Fri, Oct 18, 2002 at 04:44:56PM +0930 M.Wegmann [m.wegmann at web.de] wrote:
> Hello,
>
> first thanks a lot for your help, I managed to write my first bash script and it's working.....nearly ;-)
>
> could it be, that I can't grab a file which is an output of a GRASS command?
>
> eg (temp and $temp):
>
> r.mapcalc "temp=int(raster*1000000)"
>
> r.statistics base=killarney cover=$temp method=....
>
> here it seems that it can't read the $temp file. error message is: "no cover map found". what would be a solution for that?
>
>
> and another thing, I want to do a loop for all images starting with the letter b,d and t.
>
> eg
>
> for x in "[a,d,t]*"
>
> do
>
> .....
> r.mapcalc "temp=int($x*1000000)"
> ....
>
> done
>
> but that doesn't work. something wrong in the way I wrote it?
>
>
> thanks for your help, Martin
>
>
>
>
>
--
===============================================================================
Tomas Meinlschmidt, SBN3, MCT, MCP, MCP+I, MCSE, NetApp Filer & NetCache
Datron s.r.o., Vachkova 3008, 470 01 Ceska Lipa, 487 834 421, f: 487 834 425
gPG fp: D6F7 B1EE 33DA 2073 4EB1 AC60 0A9F FE09 98ED FB06 / $ID: 98EDFB06
GCS d-(?) s: a- C++ ULHISC*++++$ P+++>++++ L+++$>++++ E--- W+++$ N++(+) !o
!K w(---) !O !M V PS+ PE Y+ PGP++ t+@ !5 X? R tv b+ !DI D+ G e>+++
h---- r+++ z+++@
===============================================================================
More information about the grass-user
mailing list