[GRASSLIST:4822] Re: wildcards in commands?
Jeff D. Hamann
jeff_hamann at hamanndonald.com
Thu Oct 24 17:02:07 EDT 2002
ah ha! there's an g.mremove in the scripts dir for just such a thing....
----- Original Message -----
From: "Daniel Victoria" <daniel_victoria at yahoo.com>
To: "Jeff D. Hamann" <jeff_hamann at hamanndonald.com>; "GRASSLIST"
<GRASSLIST at baylor.edu>
Sent: Thursday, October 24, 2002 10:34 AM
Subject: [GRASSLIST:4819] Re: wildcards in commands?
> 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