title: Find | Grep | Sed to find a string inside a functions.php for all my websites in whm
body: <p>pls I need a grand favor here, I can't find the code to exec what I need.</p>
  <p>Here we go: I need to find a string inside a path of all my websites, like that path:</p>
  <pre><code>grep -iRl &quot;wpfeed&quot; */public_html/wp-content/themes/*/
  </code></pre>
  <p>but have a problem, with the <code>/themes/*/</code> &lt;- they find all strings in all files that I don't needed. What I want is:</p>
  <pre><code>grep -iRl &quot;wpfeed&quot; */public_html/wp-content/themes/*/functions.php.
  </code></pre>
  <p>BUT - they don't find nothing.</p>
  <p>[like in that image, nothing apperars with my code][1]</p>
  <p>and, if they find a string &quot;wpfeed&quot; they need to delete the line 2 at 183 with the command</p>
  <pre><code>sed '2,4d' file
  </code></pre>
  <p>just in case, have above a print about all my directories that I need to scan:</p>
  <pre><code>root@odin.agenciaalper.com.br [home]# /bin/ls -Rl */public_html/wp-content/themes/*/functions.php | head -10
  -rw-r--r-- 1 abcompensadoscom abcompensadoscom  18731 Nov 26  2018 abcompensadoscom/public_html/wp-content/themes/consulting/functions.php
  -rwxr-xr-x 1 abpmcom          abpmcom           26240 Jun 27  2018 abpmcom/public_html/wp-content/themes/consulting/functions.php
  -rwxr-xr-x 1 agenciaalpercom  agenciaalpercom   30337 Apr 17  2019 agenciaalpercom/public_html/wp-content/themes/thefox3/functions.php
  -rwxr-xr-x 1 agenciaalpercom  agenciaalpercom   36620 Oct  2  2018 agenciaalpercom/public_html/wp-content/themes/TheFox/functions.php
  -rw-r--r-- 1 agencialoncom    agencialoncom     24496 Jun  3 12:46 agencialoncom/public_html/wp-content/themes/consulting/functions.php
  -rw-r--r-- 1 allcarcentercom  allcarcentercom   18731 May 13  2019 allcarcentercom/public_html/wp-content/themes/consulting/functions.php
  -rw-r--r-- 1 amarekombuchacom amarekombuchacom  19670 Apr 29 14:26 amarekombuchacom/public_html/wp-content/themes/consulting/functions.php
  -rw-r--r-- 1 amaropisoscom    amaropisoscom     24016 May 18  2019 amaropisoscom/public_html/wp-content/themes/consulting/functions.php
  -rw-r--r-- 1 amigaopneuscom   amigaopneuscom    26159 Jul 28 12:47 amigaopneuscom/public_html/wp-content/themes/consulting/functions.php
  -rw-r--r-- 1 amplitudeacustic amplitudeacustic  24436 Jun 27 14:03 amplitudeacustic/public_html/wp-content/themes/consulting/functions.php
  </code></pre>