snipt

Ctrl+h for KB shortcuts

Bash

find and delete

find . -name "FILE-TO-FIND"-exec rm -rf {} \;
https://snipt.net/embed/1967e81f57d8cda3f1740bc4d75ea360/
/raw/1967e81f57d8cda3f1740bc4d75ea360/
1967e81f57d8cda3f1740bc4d75ea360
bash
Bash
1
2019-05-26T19:40:43
True
False
False
/api/public/snipt/12527/
find-and-delete
<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 <span class="s2">&quot;FILE-TO-FIND&quot;</span>-exec rm -rf <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, unix