Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
Users can also simply type g.rename --help without arguments on the command line, to receive a menu of existing data base element types and files from which to choose for possible renaming:
raster raster map(s) to be renamed raster_3d 3D raster map(s) to be renamed vector vector map(s) to be renamed labels paint label file(s) to be renamed region region definition(s) to be renamed group imagery group(s) to be renamed
If the user attempts to rename a file to itself by setting the new file name equal to the old file name (e.g., g.rename raster=soils,soils), g.rename will not execute the rename, but instead state that no rename is needed. However, g.rename will allow the user to overwrite other existing files in the current mapset by making the new file name that of an already existing file.
For portability reasons, g.rename is ignoring case of names. To change the case of a map name, first rename the map to a name which differs by more than case, then rename it to the intended name.
# rename raster map g.rename raster=oldrast,newrast # rename vector map g.rename vector=oldvect,newvect # combined renaming g.rename raster=oldrast,newrast vector=oldvect,newvect
Last changed: $Date: 2015-01-12 13:50:21 -0800 (Mon, 12 Jan 2015) $
Available at: g.rename source code (history)
Note: A new GRASS GIS stable version has been released: GRASS GIS 7.4, available here.
Updated manual page: here
Main index | General index | Topics index | Keywords index | Full index
© 2003-2018 GRASS Development Team, GRASS GIS 7.0.7svn Reference Manual