title: Bash read output?
body: <p>Say I execute a bash script and the output is:</p>
  <pre><code>Test1: Some text...
  Test2: Some text...
  Test3: Some text...
  </code></pre>
  <p>How would I, in the same bash script, store the above output as one or more variables?</p>
  <p>The ideal solution would be for it to be ready to be used in a conditional like so: (line one of output would be stored in <code>$ln1</code> etc.)</p>
  <pre><code>if [ $ln1 = &quot;Test1: Some text...&quot; ] ; then
  </code></pre>