[GRASS-user] simple shell problem

Manuel Francisco Maestre Páez mfmap at tragsatec.es
Mon Mar 3 06:29:44 EST 2008


Because of the "*" you must "escape" the multiplier operator "\*" (without
the quotes)

Manuel Francisco Maestre Páez



-----grass-user-bounces en lists.osgeo.org escribió: -----


Para: grass-user en lists.osgeo.org
De: Jaros&#322;aw Jasiewicz <jarekj en amu.edu.pl>
Enviado por: grass-user-bounces en lists.osgeo.org
Fecha: 03/03/2008 09:51
Asunto: [GRASS-user] simple shell problem

Hi

why:

g.region -g | awk -F"=" '/^nsres=/ {print $2 * 1.45}'

works, but:

bufdist=`g.region -g | awk -F"=" '/^nsres=/ {print $2 * 1.45}'`
or
bufdist=`eval g.region -g | awk -F"=" '/^nsres=/ {print $2 * 1.45}'`

not work, while, wery similar structure:

n=`g.region -g | awk -F"=" '/^n=/ {print $2+2000}'`

works??

i.e what is wrong in bufdist calculation??

thanks if somebody ansfer
Jarek
_______________________________________________
grass-user mailing list
grass-user en lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user



More information about the grass-user mailing list