.TH g.rename 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBg.rename\fR\fR - Renames data base element files in the user's current mapset. .SH KEYWORDS general, map management .SH SYNOPSIS \fBg.rename\fR .br \fBg.rename help\fR .br \fBg.rename\fR [\fBrast\fR=\fIold,new\fR] [\fBrast3d\fR=\fIold,new\fR] [\fBvect\fR=\fIold,new\fR] [\fBoldvect\fR=\fIold,new\fR] [\fBasciivect\fR=\fIold,new\fR] [\fBicon\fR=\fIold,new\fR] [\fBlabels\fR=\fIold,new\fR] [\fBsites\fR=\fIold,new\fR] [\fBregion\fR=\fIold,new\fR] [\fBregion3d\fR=\fIold,new\fR] [\fBgroup\fR=\fIold,new\fR] [\fB3dview\fR=\fIold,new\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Parameters: .IP "\fBrast\fR=\fIold,new\fR" 4m .br rast file(s) to be renamed .IP "\fBrast3d\fR=\fIold,new\fR" 4m .br rast3d file(s) to be renamed .IP "\fBvect\fR=\fIold,new\fR" 4m .br vect file(s) to be renamed .IP "\fBoldvect\fR=\fIold,new\fR" 4m .br oldvect file(s) to be renamed .IP "\fBasciivect\fR=\fIold,new\fR" 4m .br asciivect file(s) to be renamed .IP "\fBicon\fR=\fIold,new\fR" 4m .br icon file(s) to be renamed .IP "\fBlabels\fR=\fIold,new\fR" 4m .br labels file(s) to be renamed .IP "\fBsites\fR=\fIold,new\fR" 4m .br sites file(s) to be renamed .IP "\fBregion\fR=\fIold,new\fR" 4m .br region file(s) to be renamed .IP "\fBregion3d\fR=\fIold,new\fR" 4m .br region3d file(s) to be renamed .IP "\fBgroup\fR=\fIold,new\fR" 4m .br group file(s) to be renamed .IP "\fB3dview\fR=\fIold,new\fR" 4m .br 3dview file(s) to be renamed .PP .SH DESCRIPTION \fIg.rename\fR allows the user to rename data base element files in the user's current mapset. The user can specify all necessary information to \fIg.rename\fR on the command line, by specifying: the type of data base element to be renamed (one or more of: \fBrast\fR, \fBvect\fR, \fBicon\fR, \fBlabels\fR, \fBsites\fR, \fBregion\fR, and \fBgroup\fR); the specific file element in the current mapset to be renamed (\fIold\fR); and the new name to be assigned to this file element (\fInew\fR) in the current mapset. The file element \fIold\fR is then renamed to \fInew\fR. .PP Users can also simply type \fIg.rename -help\fR 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: \fC .DS .br rast rast file(s) to be renamed .br oldvect oldvect file(s) to be renamed (GRASS 5.0) .br vect vect file(s) to be renamed (GRASS >5.1) .br icon icon file(s) to be renamed .br labels labels file(s) to be renamed .br sites sites file(s) to be renamed .br region region file(s) to be renamed .br group group file(s) to be renamed .br 3dview 3dview file(s) to be renamed .br .DE \fR .SH NOTES If a data base element has support files (e.g., as is commonly the case with raster maps), these support files also are renamed. .PP If the user attempts to rename a file to itself by setting the \fInew\fR file name equal to the \fIold\fR file name (e.g., \fBg.rename rast=soils,soils\fR), \fIg.rename\fR will not execute the rename, but instead state that no rename is needed. However, \fIg.rename\fR will allow the user to overwrite other existing files in the current mapset by making the \fInew\fR file name that of an already existing file. .PP For portability reasons, \fIg.rename\fR 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. .SH EXAMPLE \fC .DS .br # rename raster map .br g.rename rast=oldrast,newrast .br .br # rename vector map .br g.rename vect=oldvect,newvect .br .br # combined renaming .br g.rename rast=oldrast,newrast vect=oldvect,newvect .br .DE \fR .SH SEE ALSO \fIg.copy\fR .br \fIg.list\fR .br \fIg.remove\fR .SH AUTHOR Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .PP \fILast changed: $Date: 2008-10-12 08:55:55 +0200 (Sun, 12 Oct 2008) $\fR .PP .PP Full index .PP © 2003-2011 GRASS Development Team