Say I execute a bash script and the output is:
Test1: Some text...
Test2: Some text...
Test3: Some text...
How would I, in the same bash script, store the above output as one or more variables?
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 $ln1
etc.)
if [ $ln1 = "Test1: Some text..." ] ; then