title: Run text file as commands in Bash
body: <p>If I have a text file with a separate command on each line how would I make terminal run each line as a command? I just don't want to have to copy and paste 1 line at a time. It doesn't HAVE to be a text file... It can be any kind of file that will work.</p>
  
  <p><code>example.txt</code>:</p>
  
  <pre><code>sudo command 1
  sudo command 2
  sudo command 3
  </code></pre>