title: How to cat dynamic filename with date format
body: <p>I can use the command to devices id from /var/log/20140522.device.log.</p>
  <p>Here is my command.</p>
  <pre><code>for i in `cat /var/log/20140522.device.log`; do echo ---$i; done
  </code></pre>
  <p>Now I want to make it by daily cron job, but it is not working.</p>
  <pre><code>for i in `cat /var/log/`/bin/date +%Y%m%d`.device.log`; do echo ---$i; done
  </code></pre>
  <p>Is it possible to put <code>cat</code> and <code>date</code> in one line?</p>