[GRASSLIST:6067] Re: g.copy
H Bowman
hamish_nospam at yahoo.com
Wed Apr 16 21:57:42 EDT 2003
> I would like to copy all of my raster maps starting with an "h" from my
> current mapset to a new one in the same location.
>
> I tried a little bit with g.copy e.g. g.copy rast= |grep h*@mapset_old,
> h*@mapset_new but that doesn't work.
>
> any suggestions for a bulk g.copy command?
try 'g.mlist h*' to get the raster names,
then a shell script using 'for' and g.copy,
and then 'g.mremove h*' to remove the maps from the old mapset.
Maybe a g.mcopy could be created from g.mremove?
good luck,
Hamish
More information about the grass-user
mailing list