File: description.html

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (50 lines) | stat: -rw-r--r-- 1,475 bytes parent folder | download | duplicates (2)
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
<H2>DESCRIPTION</H2>

<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.
<EM>g.mlist</EM> will only print map names and an optional separator,
without extraneous output. In addition, map search is also available.

<H2>EXAMPLES</H2>

<H3>Wildcards:</H3>

List all vector maps starting with letter "r":
<BR>
<TT>g.mlist type=vect pattern="r*"</TT>
<P>

List certain raster maps with one variable character/number:
<BR>
<TT>g.mlist type=rast pattern="N45E00?.meters"</TT>

<H3>Regular expressions:</H3>

Print out all soils map with "soils" in their name:<BR>
<TT>g.mlist -r type=rast pattern='^soils'</TT>
<P>

Print out "tmp" if "tmp" raster map exists:<BR>
<TT>g.mlist -r pattern='^tmp$'</TT>
<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>
<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>).

<H2>SEE ALSO</H2>

<EM><A HREF="g.list.html">g.list</A></EM>
<P>
<A HREF="http://en.wikipedia.org/wiki/Regular_expression">Regular expression</A> (from Wikipedia, the free encyclopedia)

<H2>AUTHOR</H2>
Huidae Cho
<p><i>Last changed: $Date: 2004/11/23 10:58:55 $</i>