diff --git a/rechercheDoublons.sh b/rechercheDoublons.sh index 3642b83..9746301 100755 --- a/rechercheDoublons.sh +++ b/rechercheDoublons.sh @@ -34,11 +34,7 @@ fi rm -f "$FILE" -LFILES=$(find "$REP" -type f) - -while read file; do - md5sum -b "$file" >> "$FILE" -done <<< "$LFILES" +find "$REP" -type f -exec md5sum -b {} \; > "$FILE" DOUBLON=0 @@ -52,5 +48,4 @@ if [ "$DOUBLON" -eq 0 ]; then echo "Aucun doublon trouvé"; fi logger -t $0 Fin d\'exécution du script -exit 0 - +exit 0 \ No newline at end of file