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