title: Extract version using grep/regex in bash
body: <p>I have a file that has a line stating</p>
  
  <pre><code>version = "12.0.08-SNAPSHOT"
  </code></pre>
  
  <p>The word <code>version</code> and quoted strings can occur on multiple lines in that file.</p>
  
  <p>I am looking for a single line bash statement that can output the following string:</p>
  
  <pre><code>12.0.08-SNAPSHOT
  </code></pre>
  
  <p>The version can have RELEASE tag too instead of SNAPSHOT.</p>
  
  <p>So to summarize, given </p>
  
  <pre><code>version = "12.0.08-SNAPSHOT"
  expected output: 12.0.08-SNAPSHOT
  </code></pre>
  
  <p>And given</p>
  
  <pre><code>version = "12.0.08-RELEASE"
  expected output: 12.0.08-RELEASE
  </code></pre>