title: Shell Script - save substring to variable
body: <p>A really simple shell script question. I have a file with something like this:</p>
  
  <pre><code>var "aaaaa"
  var "bbbbb"
  ...
  </code></pre>
  
  <p>Now, how can I assign the string in quotes to a variable?
  This is what I have now (but I'm missing the assign part...):</p>
  
  <pre><code>while read line
  do
    echo $line | cut -d" " -f3
  done
  </code></pre>
  
  <p>which prints what I want... how do I save it to a variable?</p>
  
  <p>Thanks</p>