[GRASSLIST:4819] Re: wildcards in commands?
Daniel Victoria
daniel_victoria at yahoo.com
Thu Oct 24 13:34:35 EDT 2002
The way I do it (in a bash shell), I put all maps I
want removed in a file, each map in a line (that can
be done using
g.list -f rast | grep water*rast > kill
and then
for i in `cat kill` do;
g.remove rast=$i;
done;
Every file in the kill list will be g.removed...
Daniel
--- "Jeff D. Hamann" <jeff_hamann at hamanndonald.com>
wrote:
> I've been "g.removing" all morning and would like to
> know if any grass
> commands allow wildcards? Would be very simple to
> write a script to do....
>
> "g.remove waterhed.*.rast" ?
>
> Jeff.
>
>
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> jeff_hamann at hamanndonald.com
> www.hamanndonald.com
>
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
More information about the grass-user
mailing list