# copy the data availability files echo Start `date` cd /cygdrive/y/bao/wfip/avail/ for d in * do cd "$d" echo `pwd` if havefiles txt; then if scp *.txt dwelsh@wfipingest1:/wfipdata/public/avail/"$d"; then rm -f *.txt fi else echo " No files" fi cd .. done echo Stop `date` echo -----