*26 Aug 2015* <div class="posthaven-post-body"> 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}' </div> [[tags/command_line|command_line]] [[tags/osx|osx]] [[tags/tricks|tricks]]