$ lsvg rootvg | sed -n 's/.*FREE PPs:.*(\([0-9][0-9]*\) megabytes.*/\1/p' 6400
Extracting text using sed and regular expressions Linux/UNIX/AIX Brian Smith's AIX / UNIX / Linux / Open Source blog.