<?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>Stereo Interactive &#38; Design &#187; OS X</title>
	<atom:link href="http://stereointeractive.com/blog/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://stereointeractive.com/blog</link>
	<description>Development Blog</description>
	<lastBuildDate>Wed, 07 Jul 2010 19:16:20 +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>Create zip archive from the command line</title>
		<link>http://stereointeractive.com/blog/2009/03/05/create-zip-archive-from-the-command-line/</link>
		<comments>http://stereointeractive.com/blog/2009/03/05/create-zip-archive-from-the-command-line/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 22:44:28 +0000</pubDate>
		<dc:creator>Scott Meves</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://stereointeractive.com/blog/?p=171</guid>
		<description><![CDATA[I never remember how to do this. I like doing it from the terminal better than the &#8220;Compress X Items&#8221; option in the finder, because the finder method will sometimes add hidden files like __MACOSX which I don&#8217;t like seeing floating around.
This is so simple, it&#8217;s stupid. 

zip [name of archive] [filepattern 1] [filepattern2] ...

So [...]]]></description>
			<content:encoded><![CDATA[<p>I never remember how to do this. I like doing it from the terminal better than the &#8220;Compress X Items&#8221; option in the finder, because the finder method will sometimes add hidden files like __MACOSX which I don&#8217;t like seeing floating around.</p>
<p>This is so simple, it&#8217;s stupid. <span id="more-171"></span></p>
<pre class="code" lang="bash">
zip [name of archive] [filepattern 1] [filepattern2] ...
</pre>
<p>So if you wanted to compress all of your PHP files from a directory:</p>
<pre class="code" lang="bash">
zip phpArchive.zip *.php
</pre>
<p>If you want to zip up all the files in the current directory, including files within directories, but still only include files that match a pattern:</p>
<pre class="code" lang="bash">
zip -r phpArchive.zip . -i \*.php
</pre>
<p>Now, if only I would do this often enough so I could remember it without wasting 5 minutes reading the man page.</p>
]]></content:encoded>
			<wfw:commentRss>http://stereointeractive.com/blog/2009/03/05/create-zip-archive-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
