[GRASS-dev] r.sum - parsable for shell scripts
Jachym Cepicky
jachym.cepicky at centrum.cz
Sun Nov 26 13:18:14 EST 2006
Hi,
r.sum produced result with spaces:
SUM = 8787936.000000
which makes it hard parable for shell scripts:
eval `r.sum rast=soils --q`
bash: SUM: command not found
IMHO there is no barrier to remove this white spaces, so the that result
looks like
SUM=8787936.000000
and one can easily perform something like
eval `r.sum rast=soils --q`
echo $SUM
8787936.000000
I allready sent this to cvs - I'm just asking, to be sure.
Thanks
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
Zemedelska 3
613 00, Brno
Czech Republick
e-mail: xcepicky at node.mendelu.cz
URL: http://mapserver.mendelu.cz
Tel.: +420 545 134 514
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20061126/a322177e/attachment.bin
More information about the grass-dev
mailing list