title: does linux shell support list data structure?
body: <p>this question is not the same as <a href="https://stackoverflow.com/questions/7314319/does-the-shell-support-sets">Does the shell support sets?</a></p>
  
  <p>i know lots of script language support list structure, such as python, python, ruby, and javascript, so what about linux shell?</p>
  
  <p>does shell support such syntax?</p>
  
  <pre><code>for i in list:
  do
       print i
  done
  </code></pre>
  
  <p>i would first to <strong>initialize a list</strong>,  for example:</p>
  
  <pre><code>ListName = [ item1, item2, ..., itemn ]
  </code></pre>
  
  <p><strong>then iterate over it</strong></p>
  
  <p>is that possible when programming shell scripts?</p>