Bash espera hasta que exista el archivo
until [ -f /tmp/examplefile.txt ]
do
sleep 5
done
echo "File found"
exit
Gifted Gull
until [ -f /tmp/examplefile.txt ]
do
sleep 5
done
echo "File found"
exit