I am working with GRASS GIS using PuTTy console and I would like to save statistics that I received, to text file.
> r.stats -c xyz
1 286048
2 151
3 473
4 12030
5 197
* 107401
I want to use awk to create matrix, but my problem is to save result of proper command that I used.
I know that in general it could be like:
> awk -F "{print $1 $2}" from >> to
But how should it look like in my case?
You can try something like:-