title: How to get the string between two dots in bash?
body: <p>I have several git-Repos in such format:</p>
  
  <pre><code>product.module1.git
  product.module2.git
  ...
  </code></pre>
  
  <p>Now I just want to iterate over the list to get just</p>
  
  <pre><code>module1
  module2
  </code></pre>
  
  <p>How can I achieve this? I've already tried ls in combination with grep, but I'm not able to remove the first and last string parts.</p>