[GRASS5] [bug #4331] (grass) delete if file exist - flag

Michael Barton michael.barton at asu.edu
Tue Apr 25 11:43:19 EDT 2006

You're in luck. This DOES exist.

Just add --o to the end of a command and it will force an overwrite of any
existing file.

Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

> From: Request Tracker <grass-bugs at intevation.de>
> Reply-To: Request Tracker <grass-bugs at intevation.de>
> Date: Mon, 24 Apr 2006 18:37:29 +0200 (CEST)
> To: <grass5 at grass.itc.it>
> Subject: [GRASS5] [bug #4331] (grass) delete if file exist - flag
> this bug's URL: http://intevation.de/rt/webrt?serial_num=4331
> -------------------------------------------------------------------------
> Subject: delete if file exist - flag
> Platform: GNU/Linux/x86
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs 24.04.2006
> Hello, 
> a flag for each module to delete a raster/vector if the file already exists
> would be good.
> A hidden g.remove with the respective name would do the job. That would make
> it easier for users to play with certain settings and not substituting each
> time the old name or run g.remove.
> BTW the delete file handling is not consistent (but I think that has been
> discussed earlier) r.mapcalc is just overwriting the file but e.g. r.rescale
> does prompt an error message that the file exist.
> regards, Martin
> -------------------------------------------- Managed by Request Tracker

More information about the grass-dev mailing list