snipt

Ctrl+h for KB shortcuts

Bash

replacing text in files recursively using perl

find . -name "*" | xargs perl -pi -e 's,jspf,jsp,g'
https://snipt.net/embed/9cefdd5bddf5552c01d722c747e81557/
/raw/9cefdd5bddf5552c01d722c747e81557/
9cefdd5bddf5552c01d722c747e81557
bash
Bash
1
2019-07-21T02:33:33
True
False
False
/api/public/snipt/1258/
replacing-text-in-files-recursively-using-perl
<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;*&quot;</span> <span class="p">|</span> xargs perl -pi -e <span class="s1">&#39;s,jspf,jsp,g&#39;</span> </span></pre></div> </td></tr></table>
find, perl, recursive