<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042292" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042292</link>
    <description></description>
    <language>en</language>
          <item>
    <title>grep -e &#039;pattern&#039; -r</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235415</link>
    <description> &lt;p&gt;grep -e &#039;pattern&#039; -r directory&lt;/p&gt;
&lt;p&gt;…always works for me. I use it several times a day.&lt;/p&gt;
&lt;p&gt;If -r is really an illegal option for your grep for some reason, try:&lt;/p&gt;
&lt;p&gt;grep -e &#039;pattern&#039; -d recurse&lt;/p&gt;
&lt;p&gt;If that still doesn&#039;t work, time for good ol&#039; man grep. Its man page is pretty monstrous, but if you search around for &quot;recursively,&quot; you ought to find  a solution.&lt;/p&gt;
 </description>
     <pubDate>Thu, 20 Nov 2008 21:17:01 +0000</pubDate>
 <dc:creator>Albright</dc:creator>
 <guid isPermaLink="false">comment 1235415 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The command works on my</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235172</link>
    <description> &lt;p&gt;The command works on my CentOS (Redhat-based) server, and my Ubuntu (Debian-based) desktop.  Not sure why it wouldn&#039;t work on yours, and the linked article doesn&#039;t mention any compatible problems.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 21:35:20 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235172 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>That&#039;s what I thought but it</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235171</link>
    <description> &lt;p&gt;That&#039;s what I thought but it doesn&#039;t work either, says that -r is an illegal option.&lt;/p&gt;
&lt;p&gt;pr0gr4mm3r - it&#039;s an apache/linux server. Not sure the details on that though. I&#039;ve had some other weird problems with command line tools on it though so maybe I should bug the sys admins...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; server admin told me this is on Solaris, which doesn&#039;t have the same kind of tools as Gnu/linux &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 21:29:00 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1235171 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>What system is this on?</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235168</link>
    <description> &lt;p&gt;What system is this on?&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 20:51:38 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235168 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Can&#039;t you just tack on a -r</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235167</link>
    <description> &lt;p&gt;Can&#039;t you just tack on a -r to grep recursively?&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 20:37:36 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1235167 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>When I do that it</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235165</link>
    <description> &lt;p&gt;When I do that it says:&lt;/p&gt;
&lt;p&gt;find: bad option -print0&lt;br /&gt;
find: path-list predicate-list&lt;br /&gt;
xargs: illegal option -- 0&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 20:06:29 +0000</pubDate>
 <dc:creator>Megan</dc:creator>
 <guid isPermaLink="false">comment 1235165 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>This should do it:
find</title>
    <link>https://www.webmaster-forums.net/webmasters-corner/need-help-searching-text-files-using-command-line#comment-1235164</link>
    <description> &lt;p&gt;This should do it:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;find /home/user/public_html/&amp;nbsp; -name &amp;quot;*&amp;quot;.php&amp;nbsp; -type f -print0&amp;nbsp; | xargs -0 grep &amp;quot;detect_flash.js&amp;quot; | uniq -c&amp;nbsp; | sort -u&amp;nbsp; | cut -d&amp;quot;:&amp;quot; -f1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Just replace /home/user/pulic_html/ with the path to search.  I came across this command when searching for malicious scripts.  More information can be found at &lt;a href=&quot;http://www.nullamatix.com/find-r57-and-c99-shells-hidden-inside-php-and-txt-files/&quot;&gt;this article&lt;/a&gt;.&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Nov 2008 19:20:23 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235164 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
