<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Unix on Holyarmy.org</title>
		<link>https://holyarmy.org/tags/unix/</link>
		<description>Recent content in Unix on Holyarmy.org</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Mon, 09 Nov 2009 05:46:53 +0000</lastBuildDate>
		
			<atom:link href="https://holyarmy.org/tags/unix/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Killing “find” Errors</title>
				<link>https://holyarmy.org/2009/11/killing-find-errors/</link>
				<pubDate>Mon, 09 Nov 2009 05:46:53 +0000</pubDate>
				<guid>https://holyarmy.org/2009/11/killing-find-errors/</guid>
				<description>&lt;p&gt;I’ve used the unix filesystem search utility &lt;strong&gt;find&lt;/strong&gt; for many years. Though, like most things, until forced to learn its deeper secrets, I generally get by with only the most basic knowledge.&lt;/p&gt;&#xA;&lt;p&gt;One of the cool things about &lt;strong&gt;find&lt;/strong&gt; is that you can specify a search and then execute an action on the results, all in one command.&lt;/p&gt;&#xA;&lt;p&gt;This example is probably my most common use of &lt;strong&gt;find&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;find . -type d -name .svn -exec rm -fr {} \;&#xA;&lt;/pre&gt;&#xA;&lt;p&gt;This means: find, in the current directory (.), a directory (-type d), named .svn (-name .svn), and for every result (-exec) remove that directory (rm -fr {}) .  The “{}” represents the matched path string, and the “;” is required to end the “-exec” command.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
