title: How to test if multiple files exist using a Bash script
body: <p>How can I use the <code>test</code> command for an arbitrary number of files, passed in using an argument with a wildcard?</p>
  <p>For example:</p>
  <pre><code>test -f /var/log/apache2/access.log.* &amp;&amp; echo &quot;exists one or more files&quot;
  </code></pre>
  <p>Currently, it prints</p>
  <pre><code>error: bash: test: too many arguments
  </code></pre>