<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ignoring .svn directories with grep</title>
	<atom:link href="http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/feed/" rel="self" type="application/rss+xml" />
	<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Mar 2012 12:22:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Zvika</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-52541</link>
		<dc:creator>Zvika</dc:creator>
		<pubDate>Tue, 29 Jun 2010 09:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-52541</guid>
		<description>Hi.
For user that cannot upgrade to the new &#039;grep&#039; command, there is another option - use a &#039;grep wrapper&#039;, created by SVN team:

http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/wcgrep</description>
		<content:encoded><![CDATA[<p>Hi.<br />
For user that cannot upgrade to the new &#039;grep&#039; command, there is another option &#8211; use a &#039;grep wrapper&#039;, created by SVN team:</p>
<p><a href="http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/wcgrep" rel="nofollow">http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/wcgrep</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raylu</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-52427</link>
		<dc:creator>raylu</dc:creator>
		<pubDate>Tue, 25 May 2010 21:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-52427</guid>
		<description>Thanks! This is life-changing.</description>
		<content:encoded><![CDATA[<p>Thanks! This is life-changing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Marscher</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-45790</link>
		<dc:creator>Rob Marscher</dc:creator>
		<pubDate>Mon, 25 Jan 2010 19:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-45790</guid>
		<description>Came across this post today... for Mac users, even my Snow Leopard OS only came with grep 2.5.1 which doesn&#039;t have the --exclude-dir option.  But you can install grep via macports which gives you 2.5.3+.  Then following the instructions to add GREP_OPTIONS to .profile works.</description>
		<content:encoded><![CDATA[<p>Came across this post today&#8230; for Mac users, even my Snow Leopard OS only came with grep 2.5.1 which doesn&#039;t have the &#8211;exclude-dir option.  But you can install grep via macports which gives you 2.5.3+.  Then following the instructions to add GREP_OPTIONS to .profile works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-26808</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Wed, 27 May 2009 08:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-26808</guid>
		<description>Hooray! (Which I understand is spelt &#039;\o/&#039; nowadays)

This now works brilliantly. Thanks heaps Corey.

Today I&#039;m at an Ubuntu bash prompt. I hope Cygwin grep is &gt;= v2.5.3...</description>
		<content:encoded><![CDATA[<p>Hooray! (Which I understand is spelt &#039;\o/&#039; nowadays)</p>
<p>This now works brilliantly. Thanks heaps Corey.</p>
<p>Today I&#039;m at an Ubuntu bash prompt. I hope Cygwin grep is &gt;= v2.5.3&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-18513</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Wed, 04 Feb 2009 18:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-18513</guid>
		<description>@Jonathan: There&#039;s a new option, --exclude-dir in grep 2.5.3 (grep --version) that works as expected. I&#039;ve updated the post accordingly.</description>
		<content:encoded><![CDATA[<p>@Jonathan: There&#039;s a new option, &#8211;exclude-dir in grep 2.5.3 (grep &#8211;version) that works as expected. I&#039;ve updated the post accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-18499</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Wed, 04 Feb 2009 12:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-18499</guid>
		<description>Sigh. One year one, I&#039;m still googling for a solution to this, and all I can find are my own comments from last year. :-(</description>
		<content:encoded><![CDATA[<p>Sigh. One year one, I&#039;m still googling for a solution to this, and all I can find are my own comments from last year. :-(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-12960</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Mon, 27 Oct 2008 15:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12960</guid>
		<description>Ah, apologies, I lied slightly. The example I gave of a line that *is* correctly filtered out (starting &#039;./FunctiojnalTests/T0321...&#039;) is wrong. That line always appears in the output. The following is an example of a line that is correctly filtered out by the &#039;--exclude&#039; flag is:

&lt;pre&gt;
  ./.svn/text-base/makedocs.py.svn-base:outputDir = os.path.join(os.getcwd(), &#039;Documentation&#039;, &#039;LibraryDocumentation&#039;)
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ah, apologies, I lied slightly. The example I gave of a line that *is* correctly filtered out (starting &#039;./FunctiojnalTests/T0321&#8230;&#039;) is wrong. That line always appears in the output. The following is an example of a line that is correctly filtered out by the &#039;&#8211;exclude&#039; flag is:</p>
<pre>
  ./.svn/text-base/makedocs.py.svn-base:outputDir = os.path.join(os.getcwd(), 'Documentation', 'LibraryDocumentation')
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Hartley</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-12959</link>
		<dc:creator>Jonathan Hartley</dc:creator>
		<pubDate>Mon, 27 Oct 2008 15:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-12959</guid>
		<description>This still doesn&#039;t quite work right for me. I can&#039;t figure out why. Some (but not all) of the files in .svn directories are still included in the output. I&#039;m using Cygwin under Windows XP.

I&#039;ve added this to my ~/.profile:

&lt;pre&gt;
  export GREP_OPTIONS=&quot;-I --color --exclude=\*.svn\*&quot;
&lt;/pre&gt;

When I open a new cygwin window, I can see the env variable has been created properly:

&lt;pre&gt;
  $ echo $GREP_OPTIONS
  -I --color --exclude=\*.svn\*
&lt;/pre&gt;

I enter a grep command:

&lt;pre&gt;
  $ grep -r LibraryDocumentation .
&lt;/pre&gt;

The results include lines like this one:

&lt;pre&gt;
  ./Documentation/.svn/entries:LibraryDocumentation
&lt;/pre&gt;

Clearly &#039;entries&#039; is inside an &#039;.svn&#039; directory. Why isn&#039;t it being filtered out?

Some files within &#039;.svn&#039; are filtered out, such as this, which appears in the output if I unset GREP_OPTIONS, but is removed if I set it:

&lt;pre&gt;
  ./FunctionalTests/T0321_US_ThreeInstalls.py:        docPath = path.join(&quot;Documentation&quot;, &quot;LibraryDocumentation&quot;)
&lt;/pre&gt;

The &#039;-I&#039; and &#039;--color&#039; options to grep are being honoured, so grep is seeing the &#039;GREP_OPTIONS&#039; variable.

I&#039;m most perplexed. If anyone has any clues or ideas, I&#039;d be very grateful. Thanks!

  Jonathan</description>
		<content:encoded><![CDATA[<p>This still doesn&#039;t quite work right for me. I can&#039;t figure out why. Some (but not all) of the files in .svn directories are still included in the output. I&#039;m using Cygwin under Windows XP.</p>
<p>I&#039;ve added this to my ~/.profile:</p>
<pre>
  export GREP_OPTIONS="-I --color --exclude=\*.svn\*"
</pre>
<p>When I open a new cygwin window, I can see the env variable has been created properly:</p>
<pre>
  $ echo $GREP_OPTIONS
  -I --color --exclude=\*.svn\*
</pre>
<p>I enter a grep command:</p>
<pre>
  $ grep -r LibraryDocumentation .
</pre>
<p>The results include lines like this one:</p>
<pre>
  ./Documentation/.svn/entries:LibraryDocumentation
</pre>
<p>Clearly &#039;entries&#039; is inside an &#039;.svn&#039; directory. Why isn&#039;t it being filtered out?</p>
<p>Some files within &#039;.svn&#039; are filtered out, such as this, which appears in the output if I unset GREP_OPTIONS, but is removed if I set it:</p>
<pre>
  ./FunctionalTests/T0321_US_ThreeInstalls.py:        docPath = path.join("Documentation", "LibraryDocumentation")
</pre>
<p>The &#039;-I&#039; and &#039;&#8211;color&#039; options to grep are being honoured, so grep is seeing the &#039;GREP_OPTIONS&#039; variable.</p>
<p>I&#039;m most perplexed. If anyone has any clues or ideas, I&#039;d be very grateful. Thanks!</p>
<p>  Jonathan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-1274</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Thu, 06 Dec 2007 00:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1274</guid>
		<description>OK, ack is truly awesome.  On Windows if you&#039;d like to invoke it by typing &#039;ack&#039;, download the stand-alone version of ack, and create a cmd script called ack.cmd (can be in the same directory as ack) in a directory that&#039;s in your PATH with this:
&lt;pre lang=&quot;cmd&quot;&gt;
@perl c:\path\to\ack.pl %*
&lt;/pre&gt;
For cygwin you&#039;ll need to add an alias in your profile/bashrc file, 
&lt;pre lang=&quot;bash&quot;&gt;alias ack=&#039;ack.cmd&#039;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>OK, ack is truly awesome.  On Windows if you&#039;d like to invoke it by typing &#039;ack&#039;, download the stand-alone version of ack, and create a cmd script called ack.cmd (can be in the same directory as ack) in a directory that&#039;s in your PATH with this:</p>

<div class="wp_syntax"><div class="code"><pre class="cmd" style="font-family:monospace;">@perl c:\path\to\ack.pl %*</pre></div></div>

<p>For cygwin you&#039;ll need to add an alias in your profile/bashrc file,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">ack</span>=<span style="color: #ff0000;">'ack.cmd'</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Iain</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-1243</link>
		<dc:creator>Iain</dc:creator>
		<pubDate>Tue, 04 Dec 2007 17:36:59 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-1243</guid>
		<description>Or use ack; http://www.petdance.com/ack/</description>
		<content:encoded><![CDATA[<p>Or use ack; <a href="http://www.petdance.com/ack/" rel="nofollow">http://www.petdance.com/ack/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-214</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Mon, 17 Sep 2007 04:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-214</guid>
		<description>Good catch.  I updated the post to reflect that.</description>
		<content:encoded><![CDATA[<p>Good catch.  I updated the post to reflect that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Asher</title>
		<link>http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/comment-page-1/#comment-212</link>
		<dc:creator>James Asher</dc:creator>
		<pubDate>Sun, 16 Sep 2007 20:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://coreygilmore.com/blog/2007/09/14/ignoring-svn-directories-with-grep/#comment-212</guid>
		<description>Actually, you have to add &#039;export GREP_OPTIONS=&quot;--exclude=\*.svn\*&quot;&#039; to the top of your .bashrc file.</description>
		<content:encoded><![CDATA[<p>Actually, you have to add &#039;export GREP_OPTIONS=&#034;&#8211;exclude=\*.svn\*&#034;&#039; to the top of your .bashrc file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 546/563 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: cdn01.coreygilmore.com

Served from: coreygilmore.com @ 2012-05-17 08:15:36 -->
