Get Infos on Battery on OSX


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. system_profiler SPPowerDataType | awk '/Full/ || /Remaining/ || /Cycle/ { printf }' | sed -e 's/[^:]*/Battery/' -e 's/ *R.*):./\//' -e 's/ *Cycle/ (mAh) Cycle/'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.