title: using "git submodule foreach" can you skip a list of submodules?
body: <p>lets say I have 10 submoules:</p>
  
  <pre><code>module/1
  module/2
  module/3
  module/4
  module/5
  module/6
  module/7
  module/8
  module/9
  module/10
  </code></pre>
  
  <p>where <code>module/</code> is the top-level repo.</p>
  
  <p>I want to do <code>git submodule foreach 'git status'</code>, but I don't want to do it for submodules 4, 6 and 7.</p>
  
  <p>Is there a way to do that, somthing like :</p>
  
  <p><code>git submodule foreach --exclude="4 6 7" 'git status'</code></p>
  
  <p>I tried doing it inside the command block using </p>
  
  <pre><code>git submodule foreach '
      if [[ $list_of_ignores =~ *"$displayname"* ]] ; then echo ignore; fi
  '
  </code></pre>
  
  <p><strong>update</strong> - removed <code>--exclude="4 6 7"</code> that was accidently in there</p>
  
  <p>But I get errors saying <code>eval [[: not found</code> - I am assuming this is because it is using /bin/sh instead of /bin/bash? - not sure...</p>