<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Find duplicate files, using sha1 hash'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 05 Apr 2026 19:04:44 +0000</lastBuildDate>
    <item>
      <title>ksaver said on 04/Aug/2011</title>
      <link>https://snipplr.com/view/57573/find-duplicate-files-using-sha1-hash</link>
      <description>&lt;p&gt;## First version:&#13;
&#13;
$ time for i in $(find . -type f -exec sha1 -r {} \; |tee .hashes.tmp |awk '{print $1}' |sort |uniq -c |awk '{print $1, $2}'|grep -v "^1"|sort -rn |awk '{print $2}'); do grep $i .hashes.tmp; echo; done;&#13;
&#13;
[...]&#13;
&#13;
real	0m2.336s&#13;
&#13;
user	0m0.600s&#13;
&#13;
sys	0m1.820s&#13;
&#13;
&#13;
# New version:&#13;
&#13;
$ time for i in $(find . -type f -exec sha1 -r {} \+ |tee .hashes.tmp |awk '{print $1}' |sort |uniq -d); do grep $i .hashes.tmp; echo; done;&#13;
&#13;
[...]&#13;
&#13;
real	0m0.256s&#13;
&#13;
user	0m0.104s&#13;
&#13;
sys	0m0.167s&lt;/p&gt;</description>
      <pubDate>Thu, 04 Aug 2011 11:05:02 UTC</pubDate>
      <guid>https://snipplr.com/view/57573/find-duplicate-files-using-sha1-hash</guid>
    </item>
  </channel>
</rss>
