1g.mlist(1)                    Grass User's Manual                   g.mlist(1)
2
3
4

NAME

6       g.mlist  - Apply regular expressions and wildcards to g.list
7

KEYWORDS

9       general, map management
10

SYNOPSIS

12       g.mlist
13       g.mlist help
14       g.mlist  [-rm]  type=string[,string,...]   [mapset=string[,string,...]]
15       [sep=string]   [pattern=string]   [--verbose]  [--quiet]
16
17   Flags:
18       -r
19           Use regular expression instead of wildcard
20
21       -m
22           Print mapset name
23
24       --verbose
25           Verbose module output
26
27       --quiet
28           Quiet module output
29
30   Parameters:
31       type=string[,string,...]
32           Data type
33           Options:                             rast,rast3d,oldvect,vect,asci‐
34           ivect,icon,labels,sites,region,region3d,group,3dview,all
35           Default: rast
36
37       mapset=string[,string,...]
38           Mapset(s) to list (default: current mapset search path)
39
40       sep=string
41           Output separator (default: newline)
42
43       pattern=string
44           Map name search pattern (default: all)
45           Default: *
46

DESCRIPTION

48       g.mlist is an extended version of g.list which provides regular-expres‐
49       sion and wildcard support.  g.mlist will only print map  names  and  an
50       optional  separator, without extraneous output. In addition, map search
51       is also available.
52

EXAMPLES

54       List all available GRASS data base files:
55       g.mlist type=all
56
57       List all raster and vector maps:
58       g.mlist type=rast,vect
59
60   Wildcards:
61       List all vector maps starting with letter "r":
62       g.mlist type=vect pattern="r*"
63
64       List certain raster maps with one variable character/number:
65       g.mlist type=rast pattern="N45E00?.meters"
66
67   Regular expressions:
68       Print out all soils map with "soils" in their name:
69       g.mlist -r type=rast pattern='^soils'
70
71       Print out "tmp" if "tmp" raster map exists:
72       g.mlist -r pattern='^tmp$'
73
74       Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map
75       name linewise):
76       g.mlist -r type=vect pattern='^tmp[0-9]$'
77
78       Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map
79       name comma separated):
80       g.mlist -r type=vect sep=, pattern='^tmp[0-9]$'
81
82       This may be useful for other programs' parameter input (e.g. r.series).
83

SEE ALSO

85       g.list
86
87       Regular expression (from Wikipedia, the free encyclopedia)
88

AUTHOR

90       Huidae Cho
91
92       Last changed: $Date: 2007-02-12 15:44:57 +0100 (Mon, 12 Feb 2007) $
93
94       Full index
95
96       © 2003-2008 GRASS Development Team
97
98
99
100GRASS 6.3.0                                                         g.mlist(1)
Impressum