title: How to use `tail` with `timeout` in bash
body: <p>I am trying to output the last few lines of a script but also cut it off after 5 seconds.  I can output the first few easily</p>
  
  <pre><code>timeout 5 ./code-c|head
  
  4 (11 - 7) 0.000003s
  6 (19 - 13) 0.000018s
  8 (37 - 29) 0.000020s
  14 (73 - 59) 0.000022s
  24 (137 - 113) 0.000024s
  30 (227 - 197) 0.000031s
  32 (433 - 401) 0.000038s
  48 (557 - 509) 0.000044s
  50 (769 - 719) 0.000051s
  54 (1283 - 1229) 0.000065s
  </code></pre>
  
  <p>But if I try</p>
  
  <pre><code>timeout 5 ./code-c|tail
  </code></pre>
  
  <p>I just get</p>
  
  <pre><code>Terminated
  </code></pre>
  
  <p>What's the right way to do this?</p>