[GRASS-user] Copying from a mapset in another data directory

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon May 24 23:40:33 EDT 2010


Jonathan Greenberg wrote:
> Excellent -- symlinking is working properly -- now on to my next
> question -- is there a way to do some level of "batch" g.copy using a
> wildcard, e.g.:
> 
> g.copy rast=ned_ca_masked_epsg3310_*@comet
> 
> Or do I have to specific each raster individually, along with its
> target file name?

Jonathan, would a for loop + g.mlist + g.copy get the job done? For example:

  for X in `g.mlist rast pat=ned_ca_masked_epsg3310_* mapset=comet` ; do 
g.copy rast="${X}","${X}" ; done

Nikos

[...]


More information about the grass-user mailing list