snipt

Ctrl+h for KB shortcuts

Bash

provides list of matching files out of "grep -h"

awk '{gsub(":",""); print $1}' | sort -u
https://snippets.siftie.com/embed/1bfdd0a0a8fb6d2ae00ddcd6c4b3c534/
/raw/1bfdd0a0a8fb6d2ae00ddcd6c4b3c534/
1bfdd0a0a8fb6d2ae00ddcd6c4b3c534
bash
Bash
1
2019-04-14T17:54:48
True
False
False
/api/public/snipt/11576/
provides-list-of-matching-files-out-of-grep-h
<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>awk <span class="s1">&#39;{gsub(&quot;:&quot;,&quot;&quot;); print $1}&#39;</span> <span class="p">|</span> sort -u </span></pre></div> </td></tr></table>
awk, grep