I need the number of rows and columns to use with v.mkgrid. Currently I use the following, rather long and complex command: g.region -g | grep o | cut -d"=" -f2 | tr "\n" "," | cut -d"," -f1,2 Is there a better choice? Thanks, Nikos