title: How to tail -f the latest log file with a given pattern
body: <p>I work with some log system which creates a log file every hour, like follows:</p>
  
  <pre><code>SoftwareLog.2010-08-01-08
  SoftwareLog.2010-08-01-09
  SoftwareLog.2010-08-01-10
  </code></pre>
  
  <p>I'm trying to tail to follow the latest log file giving a pattern (e.g. SoftwareLog*) and I realize there's:</p>
  
  <pre><code>tail -F (tail --follow=name --retry)
  </code></pre>
  
  <p>but that only follow one specific name - and these have different names by date and hour.  I tried something like:</p>
  
  <pre><code>tail --follow=name --retry SoftwareLog*(.om[1])  
  </code></pre>
  
  <p>but the wildcard statement is resoved before it gets passed to tail and doesn't re-execute everytime tail retries.</p>
  
  <p>Any suggestions?</p>