[GRASS-dev] Proper formatting of input parameters for bash scripts

Patton, Eric epatton at nrcan.gc.ca
Fri Jun 9 14:03:58 EDT 2006


I'm trying to write a script that accepts either a delimited list for input
(like g.region rast=map1,map2,map3,...) or will interpret the given input as
a wildcard pattern if the appropriate flag is given also. What is the syntax
required when writing in bash to enable this functionality? The script I'm
writing uses r.patch in loop if a wildcard pattern is given, otherwise it
should accept single or multiple-delimited lists of input rasters by
default.

Thanks,

~ Eric.




More information about the grass-dev mailing list