[GRASS-user] Removing Multiple Maps
John Ortiz
eljhonjhon at hotmail.com
Thu Jun 7 12:19:56 PDT 2012
If the maps that you want to remove have some (pattern) in the map name,
you could remove it running this loop in the GRASS-Terminal.
Identified the path of the "hist" folder in your MAPSET
path example : /home/user/Grassdata/location/Mapset/hist
Now you could run:
cd /home/user/Grassdata/location/Mapset/hist
for i in *pattern*;
do
g.remove rast=$i
done
John Ortiz
Geologist
Smithsonian Tropical Research Institute
Ancon - Panama
> Date: Thu, 7 Jun 2012 10:41:11 -0700
> From: rshepard at appl-ecosys.com
> To: grass-user at lists.osgeo.org
> Subject: [GRASS-user] Removing Multiple Maps
>
> I'm re-doing my drainage basin analyses. There are several dozen raster
> files in the mapset that I want to remove. Copying several to the g.remove
> command (separated by commas) is slow. Is it possible to use a wildcard with
> the g.remove command?
>
> My tests suggest not, but perhaps there is a way to do this that is not
> immediately obvious to me.
>
> Rich
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120607/302935b6/attachment.html>
More information about the grass-user
mailing list