g.mlist.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <H2>DESCRIPTION</H2>
  2. <EM>g.mlist</EM> is an extended version of
  3. <EM><A HREF="g.list.html">g.list</A></EM> which
  4. provides support for POSIX Basic Regular Expressions and wildcards.
  5. <EM>g.mlist</EM> will only print map names and an optional separator,
  6. without extraneous output. In addition, map search is also available.
  7. <H2>EXAMPLES</H2>
  8. List all available GRASS data base files:
  9. <BR>
  10. <TT>g.mlist type=all</TT>
  11. <P>
  12. List all raster and vector maps:
  13. <BR>
  14. <TT>g.mlist type=rast,vect</TT>
  15. <P>
  16. <H3>Wildcards:</H3>
  17. List all vector maps starting with letter "r":
  18. <BR>
  19. <TT>g.mlist type=vect pattern="r*"</TT>
  20. <P>
  21. List certain raster maps with one variable character/number:
  22. <BR>
  23. <TT>g.mlist type=rast pattern="N45E00?.meters"</TT>
  24. <H3>Regular expressions:</H3>
  25. Print out all soils map with "soils" in their name:<BR>
  26. <TT>g.mlist -r type=rast pattern='^soils'</TT>
  27. <P>
  28. Print out "tmp" if "tmp" raster map exists:<BR>
  29. <TT>g.mlist -r pattern='^tmp$'</TT>
  30. <P>
  31. Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name linewise):<BR>
  32. <TT>g.mlist -r type=vect pattern='^tmp[0-9]$'</TT>
  33. <P>
  34. Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):<BR>
  35. <TT>g.mlist -r type=vect separator=, pattern='^tmp[0-9]$'</TT>
  36. <P>
  37. This may be useful for other programs' parameter input
  38. (e.g. <EM><A HREF="r.series.html">r.series</A></EM>).
  39. <H2>SEE ALSO</H2>
  40. <EM><A HREF="g.list.html">g.list</A></EM>
  41. <P>
  42. <A HREF="http://en.wikipedia.org/wiki/Regular_expression">Regular expression</A> (from Wikipedia, the free encyclopedia)
  43. <H2>AUTHOR</H2>
  44. Huidae Cho
  45. <P><I>Last changed: $Date$</I>