Manuel Francisco Maestre Páez pisze:
Because of the "*" you must "escape" the multiplier operator "\*" (without
the quotes)
Manuel Francisco Maestre Páez
[EMAIL PROTECTED] escribió: -----
Para: [email protected]
De: Jarosław Jasiewicz <[EMAIL PROTECTED]>
Enviado por: [EMAIL PROTECTED]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user
no!
escape ( /* ) is needed in 'expr' command, here is in awk, generaly
command work but I cannot add the result to variable
J.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user