title: Extract the string between Quotes of particular occurrence in unix
body: <p>Input file</p>
  
  <pre><code>..
  set name "old name"; # comment "should be updated"
  ..
  </code></pre>
  
  <p>Output file</p>
  
  <pre><code>..
  set name "new name" ; #comment "should be updated"
  ..
  </code></pre>
  
  <p>when i  tried to  grep the content between quotes with   <code>grep -i 'name' inputfile | grep -P \".+{\"}</code>  its grepping content between first " and last "</p>
  
  <p>i.e   <code>old name"; # comment "should be updated</code></p>
  
  <p>any idea to accomplish that using <code>grep</code>, <code>sed</code> or <code>awk</code>!</p>