Last Updated: February 25, 2016
·
817
· kenergy

Show Battery percentage in Terminal

ioreg -l | grep -i capacity | tr '\n' ' | ' | awk '{printf("%.2f%%\n", $10/$5 * 100)}'