title: How to insert the current date in mail command in linux?
body: <p>I am sending the content of a file using mail command to a user. I want to send the current date in the subject. I have defined the variable <code>today_date</code> as current system date, but it is not displaying the current date in subject. Instead, it is displaying the variable name.</p>
  
  <p>Here's the command:</p>
  
  <pre><code>mail -s 'VM Snapshot $today_date' j@nom &lt;  "$EC2_HOME/SnapshotsLatest_$today_date"
  </code></pre>