macOS: Get battery percentage from command line
When at 94% battery remaining for example:
$ pmset -g batt | grep -Eo "\d+%" | cut -d% -f1
=> 94
Written by mroach_
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Macos
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#