#!/bin/sh cat /proc/stat | grep cpu | head -1 | awk '{print ($5*100)/($2+$3+$4+$5+$6+$7+$8+$9+$10+$11)}'| awk '{printf (" %2.1f%",(100-$1))}'