Jak inaczej w bash, lub w ogóle w perl rozwiązać taką potrzebę:

Kod:
#!/bin/bash
FILE='/tmp/xxc'
function checkit() {
sleep 5
test -e $FILE &> /dev/null
}
while [ $? -eq 0 ];
   do
      checkit
done
echo -e "File $FILE not found\nWhat next..?"
?