title: Save Global variables BASH
body: <p>I am new at bash and trying to solve some issues for a code I'm trying to make.</p>
  
  <p>I am at the terminal under my user name and connect to bash</p>
  
  <pre><code>USER$  
  USER$ bash  
  bash$
  </code></pre>
  
  <p>now in the bash I am saving some variables f.e:</p>
  
  <pre><code>i=2   
  k=2   
  let p=$k*$i
  </code></pre>
  
  <p>now I want to use those variables outside the bash function</p>
  
  <pre><code>bash$exit   
  USER$
  </code></pre>
  
  <p>but now the variables are not there</p>
  
  <p>I try using export, but it did not really work, could use ur help, tnx</p>