title: Syntax for a single-line while loop in Bash
body: <p>I am having trouble coming up with the right combination of semicolons and/or braces. I'd like to do this, but as a one-liner from the command line:</p>
  
  <pre><code>while [ 1 ]
  do
      foo
      sleep 2
  done
  </code></pre>