title: How to have a bash script loop until a specific time
body: <p>Usually to run an infinite bash loop, I do something like the following:</p>
  
  <pre><code>while true; do
      echo test
      sleep 1
  done
  </code></pre>
  
  <p>What if instead, I want to do a loop that loops infinitely as long as it is earlier than 20:00. Is there a way to do this in bash?</p>