title: How to source only selected lines from a key=value formatted file?
body: <p>I like to export only <code>NAME</code> and <code>YEAR</code> from ab.txt shown below
  Below solution works, but there should be a way to do without creating second file <code>b.txt</code> ?
  Please note there could be spaces in the <code>value</code>.</p>
  
  <pre><code>$ cat /tmp/ab.txt
  TYPE=Sedan
  NAME=VolksWagen golf
  YEAR=2014
  CITY=NY
  OWNERS=3
  CONDITION=Fair
  $ grep "NAME=\|YEAR=" /tmp/ab.txt &gt; /tmp/b.txt
  $ source &lt;(sed 's/=/="/; s/ *$/"/' /tmp/b.txt)
  $ echo $NAME
  VolksWagen golf
  $ echo $YEAR
  2014
  $ echo $OWNERS
  
  $ 
  </code></pre>