title: How do I iterate over multiple, discontinuous ranges in a bash for loop
body: <p>Note: I am NOT asking <a href="https://stackoverflow.com/questions/169511/how-do-i-iterate-over-a-range-of-numbers-defined-by-variables-in-bash">this question</a></p>
  
  <p>I looked for information on how to loop over a range of <em>discontiguous</em> numbers such as 0,1,2,4,5,6,7,9,11 without having to put the numbers in by hand and still use the ranges.</p>
  
  <p>The obvious way would be to do this:</p>
  
  <pre><code>for i in 0 1 2 4 5 6 7 9 11; do echo $i; done
  </code></pre>