You are missing some quotes. Try this: for map in `g.mlist -r type=vect pattern='fill_mnat' ` do r.out.arc in=$map out=basemap_$map".asc" type=area done
On Thu, May 31, 2012 at 11:23 AM, Daniel Lee <[email protected]> wrote: > I'll have to defer that to the list, I'm not too good at bash scripting: > > Well, yes I was thinking to that but I don't know exactly how to do it. I >> mean, till now with: >> g.mlist -r type=rast pattern='fill_mnat' >> I have managed to see all rasters that I want to export (fill_mnat - is >> contained in the middle of the name of all files for export). >> Next I think I have to run something like: >> for map in g.mlist -r type=rast pattern='fill_mnat' do r.out.arc >> input=$map output='basemap $map .asc' done but nothing happens. Is this the >> correct command line? > > > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > > -- David Montoya González Ing. Forestal, Universidad Nacional de Colombia Laboratorio de Sistemas Complejos, UNAL Medellin
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
