[GRASS-user] Export multiple files with r.out.arc
David Montoya
jdmonto0 at gmail.com
Thu May 31 09:45:13 PDT 2012
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 <lee at isi-solutions.org> 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
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
--
David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120531/2ab2db8b/attachment.html>
More information about the grass-user
mailing list