title: Read a Bash variable assignment from other file
body: <p>I have this test script: </p>
  
  <pre><code>#!/bin/bash
  echo "Read a variable" 
  #open file
  exec 6&lt;test.txt
  read EXAMPLE &lt;&amp;6
  #close file again
  exec 6&lt;&amp;-
  echo $EXAMPLE
  </code></pre>
  
  <p>The file <code>test.txt</code> has only one line:</p>
  
  <pre><code>EXAMPLE=1
  </code></pre>
  
  <p>The output is: </p>
  
  <pre><code>bash-3.2$ ./Read_Variables.sh
  Read the variable
  EXAMPLE=1
  </code></pre>
  
  <p>I need just to use the value of <code>$EXAMPLE</code>, in this case <code>1</code>. So how can I avoid getting the <code>EXAMPLE=</code> part in the output?</p>
  
  <p>Thanks</p>