snipt

Ctrl+h for KB shortcuts

Bash

Battery info for Mac laptop

ioreg -w0 -l | grep Capacity | cut -d " " -f 17-50
https://snipt.net/embed/055e517e83424d6c009797dfa116dcb7/
/raw/055e517e83424d6c009797dfa116dcb7/
055e517e83424d6c009797dfa116dcb7
bash
Bash
1
2019-05-23T21:58:51
True
False
False
/api/public/snipt/867/
battery-info-for-mac-laptop
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ioreg -w0 -l <span class="p">|</span> grep Capacity <span class="p">|</span> cut -d <span class="s2">&quot; &quot;</span> -f 17-50 </span></pre></div> </td></tr></table>
osx