title: How to loop over files in natural order in Bash?
body: <p>I am looping over all the files in a directory with the following command:</p>
  <pre><code>for i in *.fas; do some_code; done;
  </code></pre>
  <p>However, I get them in this order</p>
  <pre><code>vvchr1.fas  
  vvchr10.fas  
  vvchr11.fas
  vvchr2.fas
  ...
  </code></pre>
  <p>instead of</p>
  <pre><code>vvchr1.fas
  vvchr2.fas
  vvchr3.fas
  ...
  </code></pre>
  <p>what is natural order.</p>
  <p>I have tried sort command, but to no avail.</p>