Bash czekaj, aż istnieje plik

until [ -f /tmp/examplefile.txt ]
do
     sleep 5
done
echo "File found"
exit
Gifted Gull