1g.mlist(1) Grass User's Manual g.mlist(1)
2
3
4
6 g.mlist - Apply regular expressions and wildcards to g.list
7
9 general, map management
10
12 g.mlist
13 g.mlist help
14 g.mlist [-rm] type=string[,string,...] [mapset=string[,string,...]]
15 [sep=string] [pattern=string]
16
17 Flags:
18 -r use regular expression instead of wildcard
19
20 -m print mapset name
21
22 Parameters:
23 type=string[,string,...]
24 data type Options: rast,rast3d,oldvect,vect,asci‐
25 ivect,icon,labels,sites,region,region3d,group,3dview,all Default:
26 rast
27
28 mapset=string[,string,...]
29 mapset(s) to list (default: current mapset search path)
30
31 sep=string
32 output separator (default: newline)
33
34 pattern=string
35 map name search pattern (default: all) Default: *
36
38 g.mlist is an extended version of g.list which provides regular-expres‐
39 sion and wildcard support. g.mlist will only print map names and an
40 optional separator, without extraneous output. In addition, map search
41 is also available.
42
44 List all available GRASS data base files:
45 g.mlist type=all
46
47 List all raster and vector maps:
48 g.mlist type=rast,vect
49
50 Wildcards:
51 List all vector maps starting with letter "r":
52 g.mlist type=vect pattern="r*"
53
54 List certain raster maps with one variable character/number:
55 g.mlist type=rast pattern="N45E00?.meters"
56
57 Regular expressions:
58 Print out all soils map with "soils" in their name:
59 g.mlist -r type=rast pattern='^soils'
60
61 Print out "tmp" if "tmp" raster map exists:
62 g.mlist -r pattern='^tmp$'
63
64 Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map
65 name linewise):
66 g.mlist -r type=vect pattern='^tmp[0-9]$'
67
68 Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map
69 name comma separated):
70 g.mlist -r type=vect sep=, pattern='^tmp[0-9]$'
71
72 This may be useful for other programs' parameter input (e.g. r.series).
73
75 g.list
76
77 Regular expression (from Wikipedia, the free encyclopedia)
78
80 Huidae Cho
81
82 Last changed: $Date: 2007/03/08 13:51:30 $
83
84 Full index
85
86
87
88GRASS 6.2.2 g.mlist(1)