<?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>My Galagzee! &#187; files</title>
	<atom:link href="http://my.galagzee.com/tag/files/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.galagzee.com</link>
	<description>Tech in a Galagzee, Not So Far Away.</description>
	<lastBuildDate>Fri, 20 Jan 2012 18:46:41 +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>Unix Shell: find files by a date range</title>
		<link>http://my.galagzee.com/2009/02/23/unix-shell-find-files-by-a-date-range/</link>
		<comments>http://my.galagzee.com/2009/02/23/unix-shell-find-files-by-a-date-range/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 22:13:50 +0000</pubDate>
		<dc:creator>Ville Walveranta</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://my.galagzee.com/?p=181</guid>
		<description><![CDATA[I needed to restore some files from an archive on UNIX, but only the files of a particular date-range were needed.  It took a few moments to find and figure out how I could easily extract files older than a &#8230; <a href="http://my.galagzee.com/2009/02/23/unix-shell-find-files-by-a-date-range/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I needed to restore some files from an archive on UNIX, but only the files of a particular date-range were needed.  It took a few moments to find and figure out how I could easily extract files older than a particular date, or files from a particular date-range. This is how:</p>
<ol>
<li>Create a perimeter file, like so:<br />
<strong>touch -t yyyymmddHHMM marker_date</strong></p>
<p><strong></strong></li>
<li>List files <em>older </em>than the marker_date:<br />
<strong>find . -type f ! -newer marker_date -ls</strong><br />
Of course, instead of `-ls&#8217; parameter (to list), you can use `-print&#8217; and a pipe to xargs to, for example, delete the selected files, etc.</li>
</ol>
<p>Likewise, for a range of dates:</p>
<ol>
<li>Create the perimeter files:<br />
<strong>touch -t yyyymmddHHMM range_start<br />
touch -t yyyymmddHHMM range_end</strong></p>
<p><strong></strong></li>
<li>List the files <em>between</em> the range dates:<br />
<strong>find . -type f -newer range_start <span style="color: red;">!</span> -newer range_end -ls</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://my.galagzee.com/2009/02/23/unix-shell-find-files-by-a-date-range/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

