title: Bash loop over a list of elements
body: <p>I've got a script I use that looks like this</p>
  
  <pre><code>cd ~/.vim/bundle/supertab
  git pull
  cd ~/.vim/bundle/syntastic
  git pull
  cd ~/.vim/bundle/vim-alternate
  git pull
  cd ~/.vim/bundle/vim-easymotion
  git pull
  cd ~/.vim/bundle/vim-matchit
  git pull
  cd ~/.vim/bundle/vim-togglemouse
  git pull
  </code></pre>
  
  <p>I'd like to update it so it loops through a list so I could have some improved output without having repeated explicit code. I'm very bad at shell scripting and wondering if it's possible to have a bash script that would run something like this if it was done in C</p>
  
  <pre><code>vector&lt;string&gt; v{"supertab" , "syntastic", "vim-alternate", 
                   "vim-easymotion", "vim-matchit", "vim-togglemouse"};
  for (string it : v) {
      system("cd ~/.vim/bundle/" + it);
      cout &lt;&lt; it &lt;&lt; ": ";
      system("git pull");
  }
  </code></pre>