[GRASS5] Re: g.mremove

On Thu, Nov 30, 2000 at 03:43:06PM +0900, Huidae Cho wrote:

Hi Markus,

Good news!
I've added g.mremove to use wildcard in g.remove. Also g.mlist now supports
wildcard with -w flag.

Could you test this script?

Hi Huidae,

the g.mremove is working (hi all: this is g.remove with wildcards)!
g.mremove rast=*.dgm

was a big help for my overloaded location!

However:
The g.mlist is not (or I don't understand to use it):
GRASS:~/ggg > g.mlist -w type=rast d*
GRASS:~/ggg > g.mlist -w type=rast d

But I have
g.list rast
----------------------------------------------
raster files available in mapset lamme:
as dgm12.5 drain lgo5 sine tk25
aspect12.5 dgm12.5_aus_50 eins2 lgout slope topidx
..

Anyway, many thanks for writing g.mremove. If the others agree and the
module is stable, we could rename g.mremove to g.remove and "hide" the
g.remove *module* in GISBASE/etc/ for internal use by the new script.

Yours

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Markus, Hi Huidae,

isn't g.mremove a little bit dangerous? I still remember my first rm -fR
/ and think that an accidental g.mremove -w rast=* would be bad too.

So a check (remove y/n) and a flag -f (force) would be nice.

And i would vote for making wildcards standard and regexp an option.

I can confirm that "g.mlist -w type=rast *" does not work. "g.mlist
type=rast" does.

And it is not possible to shorten the parameter names, e. g. g.mlist
typ=rast does not work.

cu,

Andreas

Markus Neteler wrote:

On Thu, Nov 30, 2000 at 03:43:06PM +0900, Huidae Cho wrote:
> Hi Markus,
>
> Good news!
> I've added g.mremove to use wildcard in g.remove. Also g.mlist now supports
> wildcard with -w flag.
>
> Could you test this script?
Hi Huidae,

the g.mremove is working (hi all: this is g.remove with wildcards)!
g.mremove rast=*.dgm

was a big help for my overloaded location!

However:
The g.mlist is not (or I don't understand to use it):
GRASS:~/ggg > g.mlist -w type=rast d*
GRASS:~/ggg > g.mlist -w type=rast d

But I have
g.list rast
----------------------------------------------
raster files available in mapset lamme:
as dgm12.5 drain lgo5 sine tk25
aspect12.5 dgm12.5_aus_50 eins2 lgout slope topidx
..

Anyway, many thanks for writing g.mremove. If the others agree and the
module is stable, we could rename g.mremove to g.remove and "hide" the
g.remove *module* in GISBASE/etc/ for internal use by the new script.

Yours

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'