1 2 3 4
#!/bin/sh echo "First:" "$(cat /sys/class/power_supply/BAT0/capacity)%" echo "Second:" "$(cat /sys/class/power_supply/BAT1/capacity)%"