bechiq
Last Updated: February 25, 2017
·
34
· mroach_
16107140 10100651592874953 393703796820975529 o

macOS: Get battery percentage from command line

When at 94% battery remaining for example:

$ pmset -g batt | grep -Eo "\d+%" | cut -d% -f1
=> 94
Say Thanks
Respond
Filed Under