for letter in a b c d e f
do
LETTER=$(echo $letter | tr "[a-z]" "[A-Z]")
/usr/bin/find /home/${letter}* | /usr/bin/afio -o -W "$EXCLUDE_FILE" -L "/backup/log/full_$TODAY.log" -Z "/backup/pc406_63/full_$TODAY/full_${LETTER}_$TODAY.afio.Z"
for letter in a b c d e f
do
/usr/bin/find /home/${letter}* -depth -type f \( -ctime -1 -o -mtime -1 \) -print > $LIST
# for letter in a b c d e f
Posté par yannig (site web personnel) . En réponse au message Equivalent boucle for ?. Évalué à 5.
for letter in a b c d e f
do
LETTER=$(echo $letter | tr "[a-z]" "[A-Z]")
/usr/bin/find /home/${letter}* | /usr/bin/afio -o -W "$EXCLUDE_FILE" -L "/backup/log/full_$TODAY.log" -Z "/backup/pc406_63/full_$TODAY/full_${LETTER}_$TODAY.afio.Z"
for letter in a b c d e f
do
/usr/bin/find /home/${letter}* -depth -type f \( -ctime -1 -o -mtime -1 \) -print > $LIST
/bin/cat "$LIST" | /usr/bin/afio -o -W "$EXCLUDE_FILE" -L "/backup/log/incre_$TODAY.log" -Z "/backup/pc406_63/incre_$TODAY/incre_${LETTER}_$TODAY.afio.Z"
done
Bonne journée !