<?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: Delete Unversioned Files Under SVN</title>
	<atom:link href="http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Thu, 09 Sep 2010 20:44:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Alexander M. Batishchev</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-37684</link>
		<dc:creator>Alexander M. Batishchev</dc:creator>
		<pubDate>Sun, 18 Jul 2010 17:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-37684</guid>
		<description>Great! Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Great! Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Optimus Pete - svn: delete unversioned files</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-37197</link>
		<dc:creator>Optimus Pete - svn: delete unversioned files</dc:creator>
		<pubDate>Fri, 09 Jul 2010 15:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-37197</guid>
		<description>[...] to Guy Rutenberg for this, your definitely in my list of top 5 [...]</description>
		<content:encoded><![CDATA[<p>[...] to Guy Rutenberg for this, your definitely in my list of top 5 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-36160</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 18 Jun 2010 15:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-36160</guid>
		<description>Piping lines into xargs rm  here *will* give you grief if you have spaces in your file names! 

This is safer:
(svn status &#124; grep &#039;^[\?~]&#039;&#124; cut -c 9- )&#124; while read VICTIM; do
  rm -fr &quot;$VICTIM&quot;
  echo &quot;Deleted $VICTIM&quot;
done</description>
		<content:encoded><![CDATA[<p>Piping lines into xargs rm  here *will* give you grief if you have spaces in your file names! </p>
<p>This is safer:<br />
(svn status | grep &#8216;^[\?~]&#8216;| cut -c 9- )| while read VICTIM; do<br />
  rm -fr &#8220;$VICTIM&#8221;<br />
  echo &#8220;Deleted $VICTIM&#8221;<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-29619</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-29619</guid>
		<description>&lt;code&gt;awk&lt;/code&gt; is a great tool, but I lack comprehensive knowledge of it, thus I usually prefer other tools.</description>
		<content:encoded><![CDATA[<p><code>awk</code> is a great tool, but I lack comprehensive knowledge of it, thus I usually prefer other tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tobi</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-29550</link>
		<dc:creator>tobi</dc:creator>
		<pubDate>Wed, 03 Mar 2010 12:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-29550</guid>
		<description>why not just using awk?

svn status --no-ignore&#124;awk &#039;/^\?/ {print $2}&#039;&#124;xargs rm</description>
		<content:encoded><![CDATA[<p>why not just using awk?</p>
<p>svn status &#8211;no-ignore|awk &#8216;/^\?/ {print $2}&#8217;|xargs rm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-28190</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 19:28:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-28190</guid>
		<description>@Lionel, that indeed seems to be a very nice solution. But I think it should be like this
&lt;pre lang=&quot;bash&quot;&gt;
svn stat --no-ignore &#124; grep ^\? &#124; cut -b 9- &#124; xargs rm
&lt;/pre&gt;
I&#039;ve replaced the 8 with a 9 as you want to start printing from the 9th byte to the eol.</description>
		<content:encoded><![CDATA[<p>@Lionel, that indeed seems to be a very nice solution. But I think it should be like this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #660033;">--no-ignore</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ^\? <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-b</span> <span style="color: #000000;">9</span>- <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #c20cb9; font-weight: bold;">rm</span></pre></div></div>

<p>I&#8217;ve replaced the 8 with a 9 as you want to start printing from the 9th byte to the eol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lionel</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-28162</link>
		<dc:creator>Lionel</dc:creator>
		<pubDate>Mon, 01 Feb 2010 08:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-28162</guid>
		<description>How about just cutting the 8 first characters?

&lt;pre&gt;
svn stat --no-ignore &#124; grep ^\? &#124; cut -b 8- &#124; xargs rm
&lt;pre&gt;</description>
		<content:encoded><![CDATA[<p>How about just cutting the 8 first characters?</p>
<pre>
svn stat --no-ignore | grep ^\? | cut -b 8- | xargs rm
</pre>
<pre></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: joao</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-26703</link>
		<dc:creator>joao</dc:creator>
		<pubDate>Fri, 25 Dec 2009 17:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-26703</guid>
		<description>scratch my last comment, it&#039;s Ivan&#039;s way and should read

&lt;code&gt;
svn status --no-ignore &#124; grep &#039;^\?&#039; &#124; sed &#039;s/^\?       //&#039; &#124; sed &#039;s/ /\\ /g&#039; &#124; xargs rm
&lt;/code&gt;

or something like that... Jeez this isn&#039;t easy...</description>
		<content:encoded><![CDATA[<p>scratch my last comment, it&#8217;s Ivan&#8217;s way and should read</p>
<p><code><br />
svn status --no-ignore | grep '^\?' | sed 's/^\?       //' | sed 's/ /\\ /g' | xargs rm<br />
</code></p>
<p>or something like that&#8230; Jeez this isn&#8217;t easy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joao</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-26702</link>
		<dc:creator>joao</dc:creator>
		<pubDate>Fri, 25 Dec 2009 17:09:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-26702</guid>
		<description>To properly deal with spaces one has to do:
&lt;code&gt;
svn status --no-ignore &#124; grep &#039;^\?&#039; &#124; sed &#039;s/^\?      //&#039; &#124; sed &#039;s/\([^^]\) /\1\\ /g&#039; &#124; xargs rm
&lt;/code&gt;
in mac osx at least...</description>
		<content:encoded><![CDATA[<p>To properly deal with spaces one has to do:<br />
<code><br />
svn status --no-ignore | grep '^\?' | sed 's/^\?      //' | sed 's/\([^^]\) /\1\\ /g' | xargs rm<br />
</code><br />
in mac osx at least&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DEBO Jurgen</title>
		<link>http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/comment-page-1/#comment-25180</link>
		<dc:creator>DEBO Jurgen</dc:creator>
		<pubDate>Thu, 12 Nov 2009 21:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/#comment-25180</guid>
		<description>You can do it with sed only:

svn status --no-ignore &#124; sed -n &#039;s/^\?\s*\(.*\)/\1/p&#039; &#124; xargs rm -rf</description>
		<content:encoded><![CDATA[<p>You can do it with sed only:</p>
<p>svn status &#8211;no-ignore | sed -n &#8216;s/^\?\s*\(.*\)/\1/p&#8217; | xargs rm -rf</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.491 seconds -->
