<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: shell code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 21 Aug 2008 01:44:30 GMT</pubDate>
    <description>DZone Snippets: shell code</description>
    <item>
      <title>Search for files modified the last ... days</title>
      <link>http://snippets.dzone.com/posts/show/2062</link>
      <description>Searches for files modified up to 4 days ago. Change the 4 to whatever you desire.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find ./ -type f -mtime -4 -exec ls -al {} \;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 18 May 2006 00:17:20 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2062</guid>
      <author>yoghoyogho ()</author>
    </item>
    <item>
      <title>Find files with a certain extension, where the files contain a certain search term</title>
      <link>http://snippets.dzone.com/posts/show/2061</link>
      <description>Searches the current directory and deeper for files ending with the 'php' extension, where the file itself contains 'search_term'. Useful if you're searching a large website with lots of images and you only want to find a certain function or variable.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find ./ -type f -name \*.php -exec grep -il "search_term" {} \;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 18 May 2006 00:15:34 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2061</guid>
      <author>yoghoyogho ()</author>
    </item>
    <item>
      <title>Find files with certain extensions</title>
      <link>http://snippets.dzone.com/posts/show/2060</link>
      <description>Searches the current directory and deeper for several extensions. In this example both files mathing 'php', 'html' and 'tpl' match the search.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find ./ -regex ".*\(php\|html\|tpl\)$"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;As an alternative you could also use:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find ./ -iname "*.php" -or -iname "*.tpl" -or -iname "*.html"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 18 May 2006 00:12:42 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2060</guid>
      <author>yoghoyogho ()</author>
    </item>
    <item>
      <title>Find files with a certain extension</title>
      <link>http://snippets.dzone.com/posts/show/2059</link>
      <description>Searches the current directory and deeper for all files having an extension 'php'. Change this to the extension you're looking for.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find ./ -type f -name \*.php&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 18 May 2006 00:09:26 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2059</guid>
      <author>yoghoyogho ()</author>
    </item>
  </channel>
</rss>
