<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.workhabit.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>development</title>
 <link>http://www.workhabit.com/category/activity-stream-tags/development</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Grepping through repo directories (aka the &quot;.svn/&quot; problem)</title>
 <link>http://www.workhabit.com/labs/grepping-through-repo-directories-aka-svn-problem</link>
 <description>&lt;p&gt;It&amp;#8217;s super annoying when you&amp;#8217;re looking for a string in your code, so you do a recursive grep, only to get a ton of matches within svn&amp;#8217;s &amp;#8220;.svn&amp;#8221; directories.&lt;/p&gt;

&lt;p&gt;Here&amp;#8217;s a solution:&lt;/p&gt;

&lt;p&gt;Inside your ~/.bash_profile, insert this line:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;alias rgrep=&quot;find . -follow ( -name &quot;.svn&quot; ) -prune -o -print | xargs grep -Hn&quot;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Save it, then log out and back in.&lt;/p&gt;

&lt;p&gt;Now instead of &lt;code&gt;grep -ir &quot;sprintf&quot; *&lt;/code&gt;, do &lt;code&gt;rgrep sprintf&lt;/code&gt;. Cake!&lt;/p&gt;
</description>
 <comments>http://www.workhabit.com/labs/grepping-through-repo-directories-aka-svn-problem#comments</comments>
 <category domain="http://www.workhabit.com/category/tags/bash">bash</category>
 <category domain="http://www.workhabit.com/category/activity-stream-tags/development">development</category>
 <category domain="http://www.workhabit.com/category/tags/grep">grep</category>
 <category domain="http://www.workhabit.com/category/tags/svn">svn</category>
 <pubDate>Mon, 03 Nov 2008 21:09:43 +0000</pubDate>
 <dc:creator>domenic</dc:creator>
 <guid isPermaLink="false">1720 at http://www.workhabit.com</guid>
</item>
</channel>
</rss>

