g.remove.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <h2>DESCRIPTION</h2>
  2. <em>g.remove</em> removes data files matching a pattern given by wildcards or
  3. POSIX Extended Regular Expressions. If the <b>-f</b> force flag is not given
  4. then nothing is removed, instead the list of selected file names is printed to
  5. <tt>stdout</tt> as a preview of the files to be deleted.
  6. <h2>EXAMPLES</h2>
  7. Delete <tt>map1</tt> and <tt>map2</tt> raster maps in the current mapset:
  8. <div class="code"><pre>
  9. g.remove -f type=raster name=tmp1,tmp2
  10. </pre></div>
  11. Delete all raster and vector maps starting with "<tt>tmp_</tt>" in the current
  12. mapset:
  13. <div class="code"><pre>
  14. # show matching raster and vector maps but do not delete yet (as verification)
  15. g.remove type=raster,vector pattern="tmp_*"
  16. # actually delete the matching raster and vector maps
  17. g.remove -f type=raster,vector pattern="tmp_*"
  18. </pre></div>
  19. Delete all vector maps starting with "<tt>stream_</tt>" in the current mapset,
  20. but exclude those ending with "<tt>_final</tt>":
  21. <div class="code"><pre>
  22. g.remove -f type=vector pattern="stream_*" exclude="*_final"
  23. </pre></div>
  24. <h2>AUTHOR</h2>
  25. Huidae Cho<br>
  26. grass4u@gmail.com