title: Write output of bash script to file with date
body: <p>I'm trying to create a log file of a bash script that is run with the data. I currently have this:</p>
  
  <pre><code>bash script.sh &gt; /var/log/%Y-%m-%d_%H:%M.log
  </code></pre>
  
  <p>The problem is the log file actual writes %Y-%m-%d_%H:%M and not the date. Is there way to get the date to actually write out the date by only running it in the console?</p>