<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;"
    text="#000000" bgcolor="#FFFFFF">
    Hi Rich:<br>
    <br>
    I do:<br>
    <font size="+1"><tt>for r in `g.list rast pattern=test4blk_h_*
        mapset=other_mapset`; do</tt><tt><br>
      </tt><tt>g.copy rast=${r}@other_mapset,${r};</tt><tt><br>
      </tt><tt>done</tt></font><br>
     <br>
    <br>
    <div class="moz-cite-prefix">On 12/14/2017 07:17 PM, Rich Shepard
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.LNX.2.20.1712140911360.23388@salmo.appl-ecosys.com"> 
      Can't directly move maps from one mapset to another using rename
      (unless
      <br>
      I'm misreading the manual page), so I need to copy them to the
      current
      <br>
      mapset, then change to the source mapset and remove them.
      <br>
      <br>
        The g.copy man page does not indicate using regex or pattern to
      copy many
      <br>
      files at the same time. I have a set of 72 maps of the same
      pattern
      <br>
      (test4blk_h_*) created in the wrong mapset. I want to copy them to
      the
      <br>
      proper mapset. Is there a way to do this with a single command?
      <br>
      <br>
      Rich
      <br>
      _______________________________________________
      <br>
      grass-user mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
  </body>
</html>