<?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>Codedrop™ Weblog &#187; Linux</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:45:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recursively find specific files in certain directories.</title>
		<link>http://www.codedrop.ca/blog/archives/154</link>
		<comments>http://www.codedrop.ca/blog/archives/154#comments</comments>
		<pubDate>Wed, 28 Oct 2009 17:04:37 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/archives/154</guid>
		<description><![CDATA[Here&#8217;s a nice use of linux find to locate all ssl certificate files on a filesystem stored in directories name /certificates that excludes pesky .svn results:

find . -path "*/certificates/*" -not \( -name .svn -prune \)
I recently used this technique for pulling all certificates that were scatterred throughout a svn repository.  Taking this output you [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice use of linux find to locate all ssl certificate files on a filesystem stored in directories name /certificates that excludes pesky .svn results:</p>
<p><code><br />
find . -path "*/certificates/*" -not \( -name .svn -prune \)</code></p>
<p>I recently used this technique for pulling all certificates that were scatterred throughout a svn repository.  Taking this output you can then easily copy them to another location (say for production deployment)</p>
<p><code>find . -path "*/certificates/*" -not \( -name .svn -prune \) -exec cp '{}' ./deploy/dist/certificates ';'</code></p>
<p>To go one step further integrating this into an ANT build proved to be a pain in the butt.  The ant exec task was causing me alot of grief so ended up using antcontrib tasks like this:</p>
<p><code><br />
&lt;target name="distCerts"<br />
description="Prepare folder with all certificates required for deployment."&gt;<br />
&lt;delete  dir="${projectRoot}/deploy/dist/certificates"/&gt;<br />
&lt;mkdir dir="${projectRoot}/deploy/dist/certificates"/&gt;<br />
&lt;shellscript shell="sh" dir="${projectRoot}"&gt;<br />
find ./servicegroup -path "*/certificates/*" -not \( -name .svn -prune \) -exec cp '{}' ./deploy/dist/certificates ';'<br />
find ./deploy/certificates -path "*" -not \( -name .svn -prune \) -exec cp '{}' ./deploy/dist/certificates ';'<br />
&lt;/shellscript&gt;<br />
&lt;/target&gt;<br />
</code></p>
<p>&#8230; much easier!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Recursively+find+specific+files+in+certain+directories.+http://qz2wz.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Recursively+find+specific+files+in+certain+directories.+http://qz2wz.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/154/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
