[GRASSLIST:2477] Re: wildcards

Scott Mitchell smitch at mac.com
Thu Feb 5 11:53:40 EST 2004


Also, see g.mremove - IIRC it is just such a script...

On 5-Feb-04, at 11:40, 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.
>
> -- 
> Soil & Water Laboratory
> Dept. of Biological & Environmental Engineering
> Cornell University
> ITHACA, NY 14853
> Tel: (607)255.2463
>
------
Scott W. Mitchell		Scott_Mitchell at carleton.ca
Department of Geography and Environmental Studies
Carleton University, B349 Loeb Building (Office A209)
1125 Colonel By Drive, Ottawa, ON Canada K1S 5B6
+1-613-520-2600 ext 2695 Fax: 1-613-520-4301




More information about the grass-user mailing list