Here's how to get the number of battery charging cycles on your laptop on OSX:
ioreg -l | grep LegacyBatteryInfo | cut -d '{' -f 2 | tr -d \} | tr ',' '=' | awk -F'=' '{print $12}'
Here's how to get the number of battery charging cycles on your laptop on OSX:
ioreg -l | grep LegacyBatteryInfo | cut -d '{' -f 2 | tr -d \} | tr ',' '=' | awk -F'=' '{print $12}'