title: Globbing for only files in Bash
body: <p>I'm having a bit of trouble with globs in Bash. For example:</p>
  
  <pre><code>echo *
  </code></pre>
  
  <p>This prints out all of the files and folders in the current directory.
  e.g. (file1 file2 folder1 folder2)</p>
  
  <pre><code>echo */
  </code></pre>
  
  <p>This prints out all of the folders with a / after the name.
  e.g. (folder1/ folder2/)</p>
  
  <p>How can I glob for just the files?
  e.g. (file1 file2)</p>
  
  <p>I know it could be done by parsing ls but also know that <a href="http://mywiki.wooledge.org/ParsingLs" rel="noreferrer">it is a bad idea</a>. I tried using extended blobbing but couldn't get that to work either.</p>