title: Reading STDOUT from Shell Script (EASY)
body: <p>I'm sure this is SUPER easy.  I am trying to read a string from STDOUT.  I submit a job onto another machine and then I WANT to be able to send "bjobs" which checks if the job has been finished. I want to be able to read STDOUT and detect when it has finished then move on.</p>
  
  <p>This is what I have and it isn't working but I feel super close!</p>
  
  <h2>Waiting for stdout to read "No unfinished job found"</h2>
  
  <pre><code>bjobs
  IFS= read -r line
  echo "$line"
  while "$line" != "No unfinished job found"
  do
  echo "$line"
  sleep 30s
  bjobs
  IFS= read -r line
  done
  </code></pre>
  
  <p>any help would be appreciated! This is one of my first shell scripts</p>