snipt

Ctrl+h for KB shortcuts

Bash

Find with grep

 find ./ -name *.* -exec grep -i "something" '{}' \; -print
https://snipt.net/embed/5211293736ee91788e2826c567cc7b15/
/raw/5211293736ee91788e2826c567cc7b15/
5211293736ee91788e2826c567cc7b15
bash
Bash
1
2019-05-26T20:17:42
True
False
False
/api/public/snipt/6421/
find-with-grep
<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> find ./ -name *.* -exec grep -i <span class="s2">&quot;something&quot;</span> <span class="s1">&#39;{}&#39;</span> <span class="se">\;</span> -print </span></pre></div> </td></tr></table>
unix