I see!
For TOTAL,
Shouldn't it be ($7,2)?
VG PERMISSION: read/write TOTAL PPs: 4198 (134336 megab)
If I try ($7,2), it give me two lines per vg i.e.
rootvg: 43360MB allocated
rootvg: MB allocated
lsvg -o|lsvg -i|awk '
/GROUP/{vg=$3}
/TOTAL/{groups++;
mb=substr($7,2);
totmb+=mb;
print vg ": " mb "MB allocated"}
END{print "Total " groups " VGs: " totmb "MB allocated"}'
thx much