I am using GRASS(6.3)
on a Mac OSX
fails at length 100(for when using g.mlist for my rasters)
Fails at length 240(when using r.region to change location of raster)
I might have completely missed the point, but may the following
help?
GRASS> g.mlist type=rast pattern="prefix*" \
| (while read r; do r.region map="$r" ...; done)
(I'm assumed that you've ran into a limit of command line
length; since the above loop doesn't try to put all the map
names into a single command, but rather issues a separate
command for each of the maps, it should overcome the limit.)
goldneaa wrote:
I am using GRASS(6.3)
on a Mac OSX
fails at length 100(for when using g.mlist for my rasters)
Fails at length 240(when using r.region to change location of raster)
Ivan Shmakov wrote:
I might have completely missed the point, but may the
following help?GRASS> g.mlist type=rast pattern="prefix*" \
| (while read r; do r.region map="$r" ...; done)(I'm assumed that you've ran into a limit of command line
length; since the above loop doesn't try to put all the map
names into a single command, but rather issues a separate
command for each of the maps, it should overcome the limit.)
Yes, it probably will work using Ivan's method. You didn't miss
anything, noone had suggested it before.
If it still fails, we'd need to see the code snippet causing the error.
Hamish