#!/bin/sh idle=$(printf "%.0f\n" "$(mpstat 1 1 | sed '1,4d;s/.* //')") cpu=$(( 100 - idle )) echo "ﰆ $cpu%"