On Donnerstag, 21. Februar 2008 13:03:11 Moritz Lennert wrote: > On 21/02/08 12:05, Martin Wegmann wrote: > > Hello, > > > > to validate a modelling module I generated output raster (ca. 10000 - but > > I did not want to look at each of them ,-) ) > > > > but when I try to remove them using g.mremove I get: > > > > g.mremove rast=out_ST* -f > > Collecting map names for current mapset <nlm>... > > Forcing ... > > /usr/local/grass-6.3.svn/scripts/g.mremove: line > > 218: /usr/local/grass-6.3.svn/bin/g.remove: Lists of arguments is too > > long /usr/local/grass-6.3.svn/scripts/g.mremove: line > > 218: /usr/local/grass-6.3.svn/bin/g.remove: success > > The shell has a maximum line length (and maximum argument number ?) > which you probably exceed with this list. > > You'd probably be better off doing something like this: > > for map in `g.mlist rast pattern="out_ST*"` > do > g.remove $map > done
thanks, that solved the problem - perhaps we can add it to the g.remove man page as an example and add a hint in g.mremove. But removing more than 1000 raster is probably not a very common task. Martin -- ********************************************************************** University of Wuerzburg Institute of Geography Department of Remote Sensing Am Hubland 97074 Wuerzburg, Germany @ German Aerospace Center (DLR) German Remote Sensing Data Center (DFD) Environment and Security (US) Phone: +49-(0)931-888-4797 Fax: +49-(0)931-888-4961 Email: [EMAIL PROTECTED] ********************************************************************** _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
