/usr/share/doc/grass-doc/html/g.rename.html is in grass-doc 6.4.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>GRASS GIS manual: g.rename</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">
<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
<h2>NAME</h2>
<em><b>g.rename</b></em> - Renames data base element files in the user's current mapset.
<h2>KEYWORDS</h2>
general, map management
<h2>SYNOPSIS</h2>
<b>g.rename</b><br>
<b>g.rename help</b><br>
<b>g.rename</b> [<b>rast</b>=<em>old,new</em>] [<b>rast3d</b>=<em>old,new</em>] [<b>vect</b>=<em>old,new</em>] [<b>oldvect</b>=<em>old,new</em>] [<b>asciivect</b>=<em>old,new</em>] [<b>icon</b>=<em>old,new</em>] [<b>labels</b>=<em>old,new</em>] [<b>sites</b>=<em>old,new</em>] [<b>region</b>=<em>old,new</em>] [<b>region3d</b>=<em>old,new</em>] [<b>group</b>=<em>old,new</em>] [<b>3dview</b>=<em>old,new</em>] [--<b>verbose</b>] [--<b>quiet</b>]
<h3>Parameters:</h3>
<DL>
<DT><b>rast</b>=<em>old,new</em></DT>
<DD>rast file(s) to be renamed</DD>
<DT><b>rast3d</b>=<em>old,new</em></DT>
<DD>rast3d file(s) to be renamed</DD>
<DT><b>vect</b>=<em>old,new</em></DT>
<DD>vect file(s) to be renamed</DD>
<DT><b>oldvect</b>=<em>old,new</em></DT>
<DD>oldvect file(s) to be renamed</DD>
<DT><b>asciivect</b>=<em>old,new</em></DT>
<DD>asciivect file(s) to be renamed</DD>
<DT><b>icon</b>=<em>old,new</em></DT>
<DD>icon file(s) to be renamed</DD>
<DT><b>labels</b>=<em>old,new</em></DT>
<DD>labels file(s) to be renamed</DD>
<DT><b>sites</b>=<em>old,new</em></DT>
<DD>sites file(s) to be renamed</DD>
<DT><b>region</b>=<em>old,new</em></DT>
<DD>region file(s) to be renamed</DD>
<DT><b>region3d</b>=<em>old,new</em></DT>
<DD>region3d file(s) to be renamed</DD>
<DT><b>group</b>=<em>old,new</em></DT>
<DD>group file(s) to be renamed</DD>
<DT><b>3dview</b>=<em>old,new</em></DT>
<DD>3dview file(s) to be renamed</DD>
</DL>
<h2>DESCRIPTION</h2>
<em>g.rename</em> allows the user to rename data base
element files in the user's current mapset. The user can
specify all necessary information to <em>g.rename</em> on
the command line, by specifying: the type of data base
element to be renamed (one or more of: <b>rast</b>,
<b>vect</b>, <b>icon</b>, <b>labels</b>, <b>sites</b>,
<b>region</b>, and <b>group</b>); the specific file element
in the current mapset to be renamed (<em>old</em>); and the
new name to be assigned to this file element (<em>new</em>)
in the current mapset. The file element <em>old</em> is
then renamed to <em>new</em>.
<p>
Users can also simply type <em>g.rename -help</em> 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:
<div class="code">
<pre>
rast rast file(s) to be renamed
oldvect oldvect file(s) to be renamed (GRASS 5.0)
vect vect file(s) to be renamed (GRASS >5.1)
icon icon file(s) to be renamed
labels labels file(s) to be renamed
sites sites file(s) to be renamed
region region file(s) to be renamed
group group file(s) to be renamed
3dview 3dview file(s) to be renamed
</pre></div>
<h2>NOTES</h2>
If a data base element has support files (e.g., as is
commonly the case with raster maps), these support files
also are renamed.
<p>
If the user attempts to rename a file to itself by setting
the <em>new</em> file name equal to the <em>old</em> file
name (e.g., <b>g.rename rast=soils,soils</b>),
<em>g.rename</em> will not execute the rename, but instead
state that no rename is needed. However, <em>g.rename</em>
will allow the user to overwrite other existing files in
the current mapset by making the <em>new</em> file name
that of an already existing file.
<p>
For portability reasons, <em>g.rename</em> 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.
<h2>EXAMPLE</h2>
<div class="code"><pre>
# rename raster map
g.rename rast=oldrast,newrast
# rename vector map
g.rename vect=oldvect,newvect
# combined renaming
g.rename rast=oldrast,newrast vect=oldvect,newvect
</pre></div>
<h2>SEE ALSO</h2>
<em><a HREF="g.copy.html">g.copy</a></em><br>
<em><a HREF="g.list.html">g.list</a></em><br>
<em><a HREF="g.remove.html">g.remove</a></em>
<h2>AUTHOR</h2>
Michael Shapiro,
U.S.Army Construction Engineering
Research Laboratory
<p><i>Last changed: $Date: 2008-10-11 23:55:55 -0700 (Sat, 11 Oct 2008) $</i><p>
<HR>
<P><a href="index.html">Main index</a> - <a href="general.html">general index</a> - <a href="full_index.html">Full index</a></P>
<P>© 2003-2013 <a href="http://grass.osgeo.org">GRASS Development Team</a></p>
</body>
</html>
|