From 1585e1dac262f5a0351adede6d84615c9642ffba Mon Sep 17 00:00:00 2001 From: ronan Date: Thu, 19 Sep 2019 21:09:57 +0200 Subject: [PATCH] update find "$REP" -type f -exec md5sum -b {} \; > "$FILE" --- rechercheDoublons.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 1.7.9.5