while Infinite loop: while :; do if [ -e "file.txt" ]; then break fi sleep 1 done