Bash tunggu sampai ada file

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