Hi Rich:

I do:
for r in `g.list rast pattern=test4blk_h_* mapset=other_mapset`; do
g.copy rast=${r}@other_mapset,${r};
done

 

On 12/14/2017 07:17 PM, Rich Shepard wrote:
  Can't directly move maps from one mapset to another using rename (unless
I'm misreading the manual page), so I need to copy them to the current
mapset, then change to the source mapset and remove them.

  The g.copy man page does not indicate using regex or pattern to copy many
files at the same time. I have a set of 72 maps of the same pattern
(test4blk_h_*) created in the wrong mapset. I want to copy them to the
proper mapset. Is there a way to do this with a single command?

Rich
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to