title: How to timeout a group of commands in Bash
body: <p>I am fiddling with Linux command "timeout": it simply stops a long running command after a given seconds. But I would like to timeout not only a command, but a group of commands. I can group command in two way ( ) and { ;} however none of the following works:</p>
  
  <pre><code>timeout 1 { sleep 2; echo something; }
  timeout 1 ( sleep 2; echo something )
  </code></pre>
  
  <p>How can I do that with grouping?</p>