[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Sun Feb 6 20:25:08 2005 -->
- <!--x-from-r13: rfbgrevp ng 3gvzrf25.arg (Urbsserl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: 1107706782.995.4.camel@localhost -->
- <!--x-reference: [email protected] -->
- <!--x-reference: 1107712327.995.6.camel@localhost --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Looking for duplicate photos -->
- <li><em>date</em>: Sun Feb 6 20:25:08 2005</li>
- <li><em>from</em>: esoteric at 3times25.net (Geoffrey)</li>
- <li><em>in-reply-to</em>: <1107712327.995.6.camel@localhost></li>
- <li><em>references</em>: <1107706782.995.4.camel@localhost> <<a href="msg00181.html">[email protected]</a>> <1107712327.995.6.camel@localhost></li>
- <li><em>subject</em>: [ale] Looking for duplicate photos</li>
> 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>