title: BASH convert a text file line by line into variables
body: <p>I want to make a script for an automated setup for a multiseat system. First action is</p>
  
  <p><code>lspci | grep -i 'vga\|graphic' | cut -b 1-7 &gt; text.txt</code></p>
  
  <p>Now i want to put the two lines of the file into variables. My dowdy solution was this:</p>
  
  <pre><code>VAR1=$(head -n 1 text.txt)
  VAR2=$(tail -n 1 text.txt)
  </code></pre>
  
  <p>It also works, however, there's probably a better solution to convert a text file line by line into variables.</p>