snipt

Ctrl+h for KB shortcuts

Bash

Find size of all but few directories

du -sh `ls -1 | grep -v -e atf_runs -e exploration`
https://snipt.net/embed/4c5e9758e35335ae45b5df5c3adff3fe/
/raw/4c5e9758e35335ae45b5df5c3adff3fe/
4c5e9758e35335ae45b5df5c3adff3fe
bash
Bash
1
2019-07-05T07:33:27
True
False
False
/api/public/snipt/30373/
find-size-of-all-but-few-directories
<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>du -sh <span class="sb">`</span>ls -1 <span class="p">|</span> grep -v -e atf_runs -e exploration<span class="sb">`</span> </span></pre></div> </td></tr></table>
bash, negation, wildcard