<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Recursive file/directory change-detection</title>
	<atom:link href="http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/feed/" rel="self" type="application/rss+xml" />
	<link>http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/</link>
	<description>Milk, cookies and segmentation faults.</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/comment-page-1/#comment-16</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Tue, 15 Dec 2009 12:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=169#comment-16</guid>
		<description>[Edit] Added second (much faster) version using &lt;code&gt;ls -lR&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>[Edit] Added second (much faster) version using <code>ls -lR</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/comment-page-1/#comment-15</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Thu, 03 Dec 2009 08:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=169#comment-15</guid>
		<description>Of course! You would use it like this:
&lt;pre&gt;find &quot;$D&quot; &#124; while read f; do stat -c&#039;%n %s %b %f %u %g %D %i %h %t %T %Y %Z %o&#039; &quot;$f&quot;; done &#124; sha1sum &#124; sed &#039;s/[ -]//g&#039;&lt;/pre&gt;
So instead of the &lt;code&gt;-t&lt;/code&gt; option, you must use &lt;code&gt;-c&#039;%n %s %b %f %u %g %D %i %h %t %T %Y %Z %o&#039;&lt;/code&gt; which is actually the exact same thing but without the &lt;em&gt;%X&lt;/em&gt; format parameter which represents the access timestamp.

Using the &lt;code&gt;-c...&lt;/code&gt; options you can customize the script in any way you want, in very fine detail. Just see &lt;code&gt;man stat&lt;/code&gt; for a reference on the format parameters.

Hope this helps! :)</description>
		<content:encoded><![CDATA[<p>Of course! You would use it like this:</p>
<pre>find "$D" | while read f; do stat -c'%n %s %b %f %u %g %D %i %h %t %T %Y %Z %o' "$f"; done | sha1sum | sed 's/[ -]//g'</pre>
<p>So instead of the <code>-t</code> option, you must use <code>-c'%n %s %b %f %u %g %D %i %h %t %T %Y %Z %o'</code> which is actually the exact same thing but without the <em>%X</em> format parameter which represents the access timestamp.</p>
<p>Using the <code>-c...</code> options you can customize the script in any way you want, in very fine detail. Just see <code>man stat</code> for a reference on the format parameters.</p>
<p>Hope this helps! <img src='http://valeriu.palos.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis</title>
		<link>http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/comment-page-1/#comment-14</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Mon, 30 Nov 2009 21:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=169#comment-14</guid>
		<description>Is there a way to modify the command to not use the &#039;Accessed&#039; field in the generation of the hash? I am wondering because I need a way to scan a removable hard disk for new/modified files, but am not interested in if they were accessed or not since my app will be accessing the files in normal operation.</description>
		<content:encoded><![CDATA[<p>Is there a way to modify the command to not use the &#8216;Accessed&#8217; field in the generation of the hash? I am wondering because I need a way to scan a removable hard disk for new/modified files, but am not interested in if they were accessed or not since my app will be accessing the files in normal operation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valeriup</title>
		<link>http://valeriu.palos.ro/169/recursive-filedirectory-change-detection/comment-page-1/#comment-8</link>
		<dc:creator>valeriup</dc:creator>
		<pubDate>Fri, 20 Nov 2009 09:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://valeriu.palos.ro/?p=169#comment-8</guid>
		<description>[Edit] Removed a useless backtick execution of stat (i.e. &lt;code&gt;echo `stat -c%s $f`&lt;/code&gt;). 
Without the backticks the command yields the same result, obviously.</description>
		<content:encoded><![CDATA[<p>[Edit] Removed a useless backtick execution of stat (i.e. <code>echo `stat -c%s $f`</code>).<br />
Without the backticks the command yields the same result, obviously.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

