title: Bash script - Run commands that correspond to the lines of a file
body: <p>I have a file like this (text.txt):</p>
  
  <pre><code>ls -al
  ps -au
  export COP=5
  clear
  </code></pre>
  
  <p>Each line corresponds at a command. In my script, I need to read each line and launch each command.</p>
  
  <p><strong>ps: I tried all these options and with all of them I have the same problem with the command "export". In the file there is "export COP=5", but after running the script, if I do echo $COP in the same terminal, no value is displayed</strong></p>