Ivan Shmakov wrote:

>  > Also the "for MAP in ``" method would need to be changed if there are
>  > thousands of maps?
> 
>       I don't think so.  Since the `for' command is internal to the
>       Shell, there's no command line to be passed to any other
>       process, and so there're no command line length limits in force.
> 
>       Still, using COMMAND | while read VARN ; do ...; done looks more
>       clean to me.

The while/read approach saves keeping the list of maps in memory. Once
upon a time, that might have mattered; with modern systems, you would
need millions of maps before it became an issue.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to