title: While loop to test if files with a given pattern exist in bash
body: <p>I want to check with a file loop like this, if files with a given pattern exist:</p>
  
  <pre><code>while [ ! -f "/tmp/?????-Stock.txt" ]
  do
    sleep 2
  done
  </code></pre>
  
  <p>If more files like 12aaa-Stock.txt, 34aaa-Stock.txt are present I have a message error like  binary operator expected.</p>