[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



> Duplicate images with duplicate file names.

This is not tested, it's up to you to verify it works before you destroy 
your files.  Thrown together on the fly.... :)

# redundant loops, but it will work, I think....
# assumes you want to check every file in the current directly and
# below, regardless of type, either way
# it will remove all duplicates

for fn in $(find . -type f -print); do

	for fn1 in $(find . -type f -print); do

		if [ $fn == $fn1 ]; then continue; fi

		cmp -s $fn $fn1 && rm $fn1
	done
done

-- 
Until later, Geoffrey


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00179" href="msg00179.html">[ale] Looking for duplicate photos</a></strong>
<ul><li><em>From:</em> trey at fastmail.fm (Trey Sizemore)</li></ul></li>
<li><strong><a name="00181" href="msg00181.html">[ale] Looking for duplicate photos</a></strong>
<ul><li><em>From:</em> aaron at pd.org (aaron)</li></ul></li>
<li><strong><a name="00184" href="msg00184.html">[ale] Looking for duplicate photos</a></strong>
<ul><li><em>From:</em> trey at fastmail.fm (Trey Sizemore)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00195.html">[ale] Looking for duplicate photos</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00197.html">[ale] hack attempts</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00184.html">[ale] Looking for duplicate photos</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00187.html">[ale] DNS issues</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00196"><strong>Date</strong></a></li>
<li><a href="threads.html#00196"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>