[GRASS-user] simple shell problem

2008-03-03 Thread Jarosław Jasiewicz
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

Re: [GRASS-user] simple shell problem

2008-03-03 Thread Manuel Francisco Maestre Páez
-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

Re: [GRASS-user] simple shell problem

2008-03-03 Thread Jarosław Jasiewicz
] 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