title: How can I check if file exists using patterns?
body: <p>I have a directory with full svn backups named like this:</p>
  
  <pre><code>name1.20100412.r9.bz2
  name1.20100413.r10.bz2
  name2.20100411.r101.bz2
  name3.20100412.r102.bz2
  ...
  </code></pre>
  
  <p>I need to check if a backup file exists using name and revision number only. I tried <code>test</code> but it didn't work:</p>
  
  <pre><code>if [ -e name1.*.r9.bz2 ]; then echo exists; fi
  [: too many arguments
  </code></pre>
  
  <p>How can I test if file exists?</p>