title: Run text files in terminal
body: <p>Does anyone know if there's a way to run automatically in shell a list of commands (from a text file)?</p>
  
  <p>I need to run a lot of scripts (around 1000). The scripts are in python and take 2 arguments each (dir_#, and sample#) </p>
  
  <p>The text file I've made looks like this...</p>
  
  <pre><code>     python /home/name/scripts/get_info.py dir_1 sample1
       python /home/name/scripts/get_info.py dir_2 sample2
       python /home/name/scripts/get_info.py dir_3 sample3
       python /home/name/scripts/get_info.py dir_4 sample4
       ...
  </code></pre>
  
  <p>So, I would expect that passing this text file as argument to a command in terminal, could do the job automatically...</p>
  
  <p>Thanks in advance,</p>
  
  <p>peixe</p>