On peut même affiner le truc:
find -not -empty -type f -name "fichier*.txt" -printf "%s\n" | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate
Et pour supprimer :
find -not -empty -type f -name "fichier*.txt" -printf "%s\n" | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate | xargs rm
Message édité le 05 février 2015 à 12:40:13 par Pseudo supprimé