使用内存的百分比

http://www.ixpub.net/viewthread.php?tid=737887&page=1#pid6185003

# free | sed -n 2p | awk '{print "used="$3/$2*100"%","free="$4/$2*100"%"}'
used=28.6574% free=71.3426%

[@more@]
请使用浏览器的分享功能分享到微信等