echo "Do you want the DELETE switch?" read DUMMY echo "What is the SOURCE directory?" read SOURCE echo "What is the DESTINATION directory?" read DESTINATION for i in $1 $2 $3 $4 $5 $6 $7 $8 $9; do echo " " echo "Sending goodies to: $i...." case "$DUMMY" in y) echo '------------- DELETE SWITCH ON -------------------------' rsync -e ssh -av ${SOURCE} $i:${DESTINATION} --progress --delete ;; *) rsync -e ssh -av ${SOURCE} $i:${DESTINATION} --progress ;; esac echo "-----------------------------------------------------------------------" done