free | sed -n 2p | awk ‘{print “used=”$3/$2*100”%”,”free=”$4/$2*100”%”}’
used=93.4495% free=6.55047%
感谢鼓励