Because of the "*" you must "escape" the multiplier operator "\*" (without the quotes)
Manuel Francisco Maestre Páez [EMAIL PROTECTED] escribió: ----- Para: grass-user@lists.osgeo.org 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 grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user