g.mlist(1grass)

g.mlist1grass

Lists available grass data base files of the user-specified data type optionally using the search pattern.

Usage

g.mlist

g.mlist help

g.mlist [-retmpf] type=datatype [,datatype, ...] [pattern=string] [exclude=string] [separator=string] [mapset=string] [--verbose] [--quiet]

Keywords

general, map management

Overview

g.mlist searches for data files matching a pattern given by wildcards or POSIX Extended Regular Expressions.

Examples

List all available GRASS data base files:

g.mlist type=all
List all raster and vector maps:

g.mlist type=rast,vect

Wildcards:

List all vector maps starting with letter "r":

g.mlist type=vect pattern="r*"
List certain raster maps with one variable character/number:

g.mlist type=rast pattern="N45E00?.meters"
Use of exclude parameter:
# without exclude:
g.mlist rast pat="r*" mapset=PERMANENT
railroads
roads
rstrct.areas
rushmore

# exclude only complete word(s):
g.mlist rast pat="r*" exclude=roads mapset=PERMANENT
railroads
rstrct.areas
rushmore

# exclude with wildcard:
g.mlist rast pat="r*" exclude="*roads*" mapset=PERMANENT
rstrct.areas
rushmore

Regular expressions:

Print out all soils map with "soils" in their name:
g.mlist -r type=rast pattern='^soils'
Print out "tmp" if "tmp" raster map exists:

g.mlist -r pattern='^tmp$'
Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):

g.mlist -r type=vect pattern='^tmp[0-9]$'
Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):

g.mlist -r type=vect separator=, pattern='^tmp[0-9]$'
This may be useful for other programs' parameter input (e.g. r.series).

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

Author

Huidae Cho
[email protected]

Last changed: $Date: 2011-06-03 18:42:11 +0200 (Fri, 03 Jun 2011) $

Full index

© 2003-2014 GRASS Development Team

From grass-doc 6.4.4-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.