title: test if file(s) from a given pattern exists in bash
body: <p>How do I test if a file (or many) named from given pattern exists and do stuff based on that test?</p>
  
  <p>This is my failed attempt:</p>
  
  <pre><code>[[ { ls ../outputListWorkerPid_* |  wc -l } -ge "1" ]] &amp;&amp; echo "ARRRRRR" || &amp;&amp; echo "FAIL"
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <pre><code>bash: conditional binary operator expected
  bash: syntax error near `ls'
  </code></pre>
  
  <p>Also it would be nice to avoid the <code>No such file or directory</code> from <code>ls</code> in case the doesn't exists.</p>