title: AWS S3 - Example of searching files in S3 using regex
body: <p>How to list the files in S3 using regex (in linux cli mode)? I have the files in s3 bucket like <code>sales1.txt</code>, <code>sales2.txt</code> etc. When I ran the below command nothing is displaying. Is there a command to list the all the files in S3 bucket with regex?</p>
  <p>Command:</p>
  <pre class="lang-sh prettyprint-override"><code>aws s3 ls s3://test/sales*txt
  </code></pre>
  <p>Expected output:</p>
  <pre><code>sales1.txt
  sales2.txt
  sales3.txt
  </code></pre>