[GRASS-SVN] r58175 - in grass/branches/develbranch_6/scripts: g.mlist g.mremove

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 9 07:13:34 PST 2013


Author: neteler
Date: 2013-11-09 07:13:34 -0800 (Sat, 09 Nov 2013)
New Revision: 58175

Modified:
   grass/branches/develbranch_6/scripts/g.mlist/description.html
   grass/branches/develbranch_6/scripts/g.mremove/description.html
Log:
g.mlist, g.mremove: examples improved

Modified: grass/branches/develbranch_6/scripts/g.mlist/description.html
===================================================================
--- grass/branches/develbranch_6/scripts/g.mlist/description.html	2013-11-09 15:13:17 UTC (rev 58174)
+++ grass/branches/develbranch_6/scripts/g.mlist/description.html	2013-11-09 15:13:34 UTC (rev 58175)
@@ -2,61 +2,90 @@
 
 <em>g.mlist</em> is an extended version of 
 <em><a href="g.list.html">g.list</a></em> which
-provides regular-expression and wildcard support.
+provides (extended) regular expression and wildcard support.
 <em>g.mlist</em> will only print map names and an optional separator,
 without extraneous output. In addition, map search is also available.
 
 <p>
-See the <em>g.list</em> help page for discussion of module options.
+See also the <em>g.list</em> help page for discussion of some module
+options.
 
+<h2>NOTES</h2>
 
+The output of <em>g.mlist</em> may be useful for other programs' parameter
+input (e.g. time series for <em><a href="r.series.html">r.series</a></em>).
+
 <h2>EXAMPLES</h2>
 
 List all available GRASS data base files:
-<br>
-<TT>g.mlist type=all</TT>
+
+<div class="code"><pre>
+g.mlist type=all
+</pre></div>
 <p>
 
 List all raster and vector maps:
-<br>
-<TT>g.mlist type=rast,vect</TT>
+
+<div class="code"><pre>
+g.mlist type=rast,vect
+</pre></div>
 <p>
 
 <h3>Wildcards:</h3>
 
 List all vector maps starting with letter "r":
-<br>
-<TT>g.mlist type=vect pattern="r*"</TT>
+
+<div class="code"><pre>
+g.mlist type=vect pattern="r*"
+</pre></div>
 <p>
 
 List certain raster maps with one variable character/number:
-<br>
-<TT>g.mlist type=rast pattern="N45E00?.meters"</TT>
 
+<div class="code"><pre>
+g.mlist type=rast pattern="N45E00?.meters"
+</pre></div>
+
+
 <h3>Regular expressions:</h3>
 
-Print out all soils map with "soils" in their name:<br>
-<TT>g.mlist -r type=rast pattern='^soils'</TT>
+List all soil maps starting with "soils" in their name:
+<div class="code"><pre>
+g.mlist -r type=rast pattern='^soils'
+</pre></div>
 <p>
 
-Print out "tmp" if "tmp" raster map exists:<br>
-<TT>g.mlist -r pattern='^tmp$'</TT>
+List "tmp" if "tmp" raster map exists:
+<div class="code"><pre>
+g.mlist -r pattern='^tmp$'
+</pre></div>
 <p>
 
-Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):<br>
-<TT>g.mlist -r type=vect pattern='^tmp[0-9]$'</TT>
+List "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):
+<div class="code"><pre>
+g.mlist -r type=vect pattern='^tmp[0-9]$'
+</pre></div>
 <p>
 
-Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):<br>
-<TT>g.mlist -r type=vect sep=, pattern='^tmp[0-9]$'</TT>
-<p>
-This may be useful for other programs' parameter input 
-(e.g. <em><a href="r.series.html">r.series</a></em>).
+List "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):
+<div class="code"><pre>
+g.mlist -r type=vect sep=comma pattern='^tmp[0-9]$'
+</pre></div>
 
 
+<h3>Regular expressions:</h3>
+
+List all precipitation maps of the years 1997-2012, comma separated:
+<div class="code"><pre>
+g.mlist -e type=rast sep=comma pattern="precip_total.(199[7-9]|200[0-9]|201[0-2]).sum"
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
-<em><a href="g.list.html">g.list</a></em>
+<em>
+<a href="g.list.html">g.list</a>,
+<a href="r.series.html">r.series</a>
+</em>
 <p>
 <a href="http://en.wikipedia.org/wiki/Regular_expression">Regular expressions</a>
 (aka regex) - from Wikipedia, the free encyclopedia

Modified: grass/branches/develbranch_6/scripts/g.mremove/description.html
===================================================================
--- grass/branches/develbranch_6/scripts/g.mremove/description.html	2013-11-09 15:13:17 UTC (rev 58174)
+++ grass/branches/develbranch_6/scripts/g.mremove/description.html	2013-11-09 15:13:34 UTC (rev 58175)
@@ -10,12 +10,18 @@
 Delete all raster maps starting with "<tt>tmp_</tt>" in the current mapset:
 
 <div class="code"><pre>
-  g.mremove -f "tmp_*"
+# show matching raster maps but do not delete yet (as verification)
+g.mremove rast="tmp_*"
+
+# actually delete the matching raster maps
+g.mremove -f rast="tmp_*"
 </pre></div>
 
 <h2>SEE ALSO</h2>
 
-<em><a href="g.remove.html">g.remove</a></em><br>
+<em>
+<a href="g.remove.html">g.remove</a>
+</em>
 
 <h2>AUTHOR</h2>
 



More information about the grass-commit mailing list