[GRASSLIST:2476] Re: wildcards

Paul Kelly paul-grass at stjohnspoint.co.uk
Thu Feb 5 11:53:02 EST 2004


On Thu, 5 Feb 2004, SWlab wrote:

> [Thursday 05 February 2004 10:53] From Kirk R. Wythers
> > I have a large number of raster files to remove from a mapset. Are
> > wildcards available to expedite this process?
>
> It's far far better to use the "g.remove" function, than deleting the files by
> hand (too many directories to search).
> Why wouldn't you just write a small script to create the list of all your
> rasters, and then call "g.remove" ?
> Like
>
> for map in ${maplist}; do g.remove ra=${map}; done
>
> Your maplist can be created with as many wildcards as you want.

What about
g.mremove rast='pattern*'




More information about the grass-user mailing list