Skip to content

Instantly share code, notes, and snippets.

@bitzip
Created March 12, 2016 01:04
Show Gist options
  • Save bitzip/c2e222dc868f9256d8d5 to your computer and use it in GitHub Desktop.
Save bitzip/c2e222dc868f9256d8d5 to your computer and use it in GitHub Desktop.
retrieve battery cycle in command line on Mac OS
system_profiler SPPowerDataType | grep Cycle | grep -oE '[0-9]+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment