<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Rsanheim's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sat, 06 Sep 2008 20:04:58 GMT</pubDate>
    <description>DZone Snippets: Rsanheim's Code Snippets</description>
    <item>
      <title>grep for a file, excluding svn metadata directories and files</title>
      <link>http://snippets.dzone.com/posts/show/3707</link>
      <description>Grep for something, excluding the annoying svn metadata (.svn**)&lt;br /&gt;The find piece could also be used for more general tasks -- just remove the pipe and take a look at the output to see if it will work for you.&lt;br /&gt;I tried (and failed) to use the find to a path preserving copy from within a subdirectory in a checkout...though there must be a way.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find . -path '*/.svn' -prune -o -type f -print | xargs -e grep -I -n -e PATTERN&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 20 Mar 2007 15:13:51 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3707</guid>
      <author>rsanheim (Rob Sanheim)</author>
    </item>
    <item>
      <title>Exclude vendor/rails from Textmate projects</title>
      <link>http://snippets.dzone.com/posts/show/2419</link>
      <description>If you have a rails project you load up in textmate, and you have some version of Rails in vendor/rails, you probably know that doing a 'find in project' takes a lot longer because it scans all the rails source files.  You also get a lot more crap to wade thru when doing a go-to type (command t).  To exclude vendor rails, click on the project root in the drawer, click on the "i" icon, and change the folder pattern to this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;!.*/(\.[^/]*|CVS|vendor/rails|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$$&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Note the addition of "vendor/rails" to the regex.  You can also add this to preferences -&gt; advanced to make it the default for new text mate projects.</description>
      <pubDate>Mon, 14 Aug 2006 22:56:57 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2419</guid>
      <author>rsanheim (Rob Sanheim)</author>
    </item>
  </channel>
</rss>
