[GRASS5] [bug #1246] (grass) g.remove with wildcards, please

this bug's URL: http://intevation.de/rt/webrt?serial_num=1246
-------------------------------------------------------------------------

Subject: g.remove with wildcards, please

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0pre4

Wildcards such as ?/* would be really handy when dealing with massive data clearing efforts in GRASS.
For example, g.remove rast=foo??? would allow to get rid of foo001,foo002.....foo999, etc.

Peter Löwe

-------------------------------------------- Managed by Request Tracker

On Tue, Aug 27, 2002 at 06:12:08PM +0200, Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=1246
-------------------------------------------------------------------------

Subject: g.remove with wildcards, please

Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0pre4

Wildcards such as ?/* would be really handy when dealing with massive data clearing efforts in GRASS.
For example, g.remove rast=foo??? would allow to get rid of foo001,foo002.....foo999, etc.

Hi Peter,

g.mremove is your friend.

g.mremove rast="foo.*"

Ciao

Markus

Markus Neteler writes:
> g.mremove is your friend.
>
> g.mremove rast="foo.*"

perhaps g.remove should print a warning when it sees '*' or '?' in a
filename?

--
-russ nelson http://russnelson.com |
Crynwr sells support for free software | PGPok | businesses persuade
521 Pleasant Valley Rd. | +1 315 268 1925 voice | governments coerce
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |