fdupes

pour dédupliquer les fichiers : http://premium.caribe.net/~adrian2/fdupes.html

Sinon :

OUTF=rem-duplicates.sh;
echo “#! /bin/sh” > $OUTF;
find “$@” -type f -exec md5sum {} \; |
sort –key=1,32 | uniq -w 32 -d –all-repeated=separate |
sed -r ‘s/^[0-9a-f]*( )*//;s/([^a-zA-Z0-9./_-])/\\\1/g;s/(.+)/#rm \1/’ >> $OUTF;
chmod a+x $OUTF; ls -l $OUTF

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Optimization WordPress Plugins & Solutions by W3 EDGE