DESCRIPTION

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

EXAMPLES

List all available GRASS data base files:
  g.xlist type=all
List all raster and vector maps:
  g.xlist type=rast,vect

Wildcards:

List all vector maps starting with letter "r":
  g.xlist type=vect pattern="r*"
List certain raster maps with one variable character/number:
  g.xlist type=rast pattern="N45E00?.meters"

Regular expressions:

Print out all soils map with "soils" in their name:
  g.xlist -r type=rast pattern='^soils'
Print out "tmp" if "tmp" raster map exists:
  g.xlist -r pattern='^tmp$'
Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):
  g.xlist -r type=vect pattern='^tmp[0-9]$'
Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):
  g.xlist -r type=vect separator=, pattern='^tmp[0-9]$'
This may be useful for other programs' parameter input (e.g. r.series).

SEE ALSO

g.list

Regular expression (from Wikipedia, the free encyclopedia)

AUTHOR

Huidae Cho
grass4u@gmail.com

Last changed: $Date$