<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WEBPIRATEN &#187; find</title>
	<atom:link href="http://webpiraten.de/index.php/tag/find/feed/" rel="self" type="application/rss+xml" />
	<link>http://webpiraten.de</link>
	<description>Techblog</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:52:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>mit find, grep und xargs dateien rekursiv aus svn working copies löschen</title>
		<link>http://webpiraten.de/index.php/versionierung/mit-find-grep-und-xargs-dateien-rekursiv-aus-svn-working-copies-loschen/</link>
		<comments>http://webpiraten.de/index.php/versionierung/mit-find-grep-und-xargs-dateien-rekursiv-aus-svn-working-copies-loschen/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 12:28:13 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Versionierung]]></category>
		<category><![CDATA[dateien]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[löschen]]></category>
		<category><![CDATA[rekursiv]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=326</guid>
		<description><![CDATA[Findet alle Dateien die mit ._ anfangen, ignoriert die .svn eigenen kopien und markiert diese zum löschen via svn.]]></description>
			<content:encoded><![CDATA[<p>Findet alle Dateien die mit ._ anfangen, ignoriert die .svn eigenen kopien und markiert diese zum löschen via svn.</p>
<pre class="brush: bash; title: ; notranslate">
find . -name '._*' -type f | grep -v '.svn/'  | xargs svn rm
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/versionierung/mit-find-grep-und-xargs-dateien-rekursiv-aus-svn-working-copies-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mit find und xargs und cp dateien von a nach b kopieren</title>
		<link>http://webpiraten.de/index.php/server/mit-find-und-xargs-und-cp-dateien-von-a-nach-b-kopieren/</link>
		<comments>http://webpiraten.de/index.php/server/mit-find-und-xargs-und-cp-dateien-von-a-nach-b-kopieren/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 16:20:12 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=308</guid>
		<description><![CDATA[finde alle dateien in directory die mit .ext enden und kopiere sie nach newdirectory]]></description>
			<content:encoded><![CDATA[<p>finde alle dateien in <em>directory</em> die mit <em>.ext</em> enden und kopiere sie nach <em>newdirectory</em></p>
<pre class="brush: bash; title: ; notranslate">

find directory/ -type f -name *.ext -print0 | xargs -0 cp -t newdirectory/
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/server/mit-find-und-xargs-und-cp-dateien-von-a-nach-b-kopieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>alte dateien mit ant task löschen</title>
		<link>http://webpiraten.de/index.php/server/alte-dateien-mit-ant-task-loschen/</link>
		<comments>http://webpiraten.de/index.php/server/alte-dateien-mit-ant-task-loschen/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 09:36:54 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[task]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=279</guid>
		<description><![CDATA[um mit ant alte dateien per find/pipe/xargs zu entfernen, kann man den ant exec befehl verwenden.]]></description>
			<content:encoded><![CDATA[<p>um mit ant alte dateien per find/pipe/xargs zu entfernen, kann man den ant exec befehl verwenden.</p>
<pre class="brush: bash; title: ; notranslate">
    &lt;target name=&quot;dump_cleanup&quot; description=&quot;dump cleanup - remove old backup db dumps&quot;&gt;
        &lt;echo message=&quot;cleanup backup dir - remove old db dumps&quot;/&gt;
        &lt;exec executable=&quot;bash&quot; dir=&quot;${backups}&quot;&gt;
            &lt;arg value=&quot;-c&quot;/&gt;
            &lt;arg line='&quot;find -P . -maxdepth 1 -type f -ctime +4 -print0 | xargs -0 rm -f&quot;'/&gt;
        &lt;/exec&gt;
    &lt;/target&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/server/alte-dateien-mit-ant-task-loschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mit find und xargs alte dateien löschen</title>
		<link>http://webpiraten.de/index.php/server/mit-find-und-xargs-alte-dateien-loschen/</link>
		<comments>http://webpiraten.de/index.php/server/mit-find-und-xargs-alte-dateien-loschen/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 17:25:43 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[alte dateien]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[ctime]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[löschen]]></category>
		<category><![CDATA[maxdepth]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=275</guid>
		<description><![CDATA[Der Konsolen Befehl im Detail: find . findet im aktuellen Ordner Dateien (-type f &#8211; files) deren Dateistatus vor mehr als 3*24h (-ctime +3) geändert wurde. Mit -maxdepth 1 verhindern wir Rekursion in die Tiefe des aktuellen Ordners. Die Pipe &#8230; <a href="http://webpiraten.de/index.php/server/mit-find-und-xargs-alte-dateien-loschen/">weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Der Konsolen Befehl im Detail:</p>
<pre class="brush: bash; title: ; notranslate">
find . -type f -ctime +3 -maxdepth 1 | xargs rm
</pre>
<p><strong>find .</strong> findet im aktuellen Ordner Dateien (<strong>-type f</strong> &#8211; files) deren Dateistatus vor mehr als 3*24h (<strong>-ctime +3</strong>) geändert wurde. Mit <strong>-maxdepth 1</strong> verhindern wir Rekursion in die Tiefe des aktuellen Ordners.</p>
<p>Die Pipe (<strong>|</strong>) übergibt das find-Ergebnis nach <strong>xargs</strong> und führt <strong>rm </strong>auf jedem einzelnen Ergebnis aus.</p>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/server/mit-find-und-xargs-alte-dateien-loschen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>.svn Verzeichnisse rekursiv aus Ordnern löschen</title>
		<link>http://webpiraten.de/index.php/versionierung/svn-verzeichnisse-rekursiv-aus-ordnern-loeschen/</link>
		<comments>http://webpiraten.de/index.php/versionierung/svn-verzeichnisse-rekursiv-aus-ordnern-loeschen/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 11:21:52 +0000</pubDate>
		<dc:creator>sägefisch</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Versionierung]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[löschen]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[rekursiv]]></category>
		<category><![CDATA[rf]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[verzeichnis]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://webpiraten.de/?p=135</guid>
		<description><![CDATA[Folgender Kommandozeilen Befehl löscht alle .svn Verzeichnisse in einem Ordner. Im Detail sucht das Kommando find im aktuellen Ordner (.) rekursiv nach Verzeichnissen (-type d) mit dem Namen .svn (-name .svn) und piped (&#124;) diese Liste nach xargs, welches dann &#8230; <a href="http://webpiraten.de/index.php/versionierung/svn-verzeichnisse-rekursiv-aus-ordnern-loeschen/">weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Folgender Kommandozeilen Befehl löscht alle .svn Verzeichnisse in einem Ordner.</p>
<p>Im Detail sucht das Kommando <strong>find</strong><br />
im aktuellen Ordner (<strong>.</strong>) rekursiv<br />
nach Verzeichnissen (<strong>-type d</strong>)<br />
mit dem Namen .svn (<strong>-name .svn</strong>)<br />
und piped (<strong>|</strong>) diese Liste<br />
nach <strong>xargs</strong>,<br />
welches dann an erster Stelle (<strong>-0</strong>) der Liste<br />
mit der Löschoperation (<strong>rm -rf</strong>) beginnt.</p>
<pre class="brush: bash; title: ; notranslate">

find . -type d -name .svn -print0 | xargs -0 rm -rf
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webpiraten.de/index.php/versionierung/svn-verzeichnisse-rekursiv-aus-ordnern-loeschen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

