[GRASS-user] simple shell problem
Jarosław Jasiewicz
jarekj at amu.edu.pl
Mon Mar 3 03:51:30 EST 2008
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
More information about the grass-user
mailing list