title: Print a Date with some text in a new File using Shell Script
body: <p>I'm new to the Shell script. </p>
  
  <p>I want to create a file using shell script and write a current date and time in that file. So i tried the below code. It is creating the Text file successfully and writing the text but not the date. I don't know what did i miss. Any help would be appreciated.</p>
  
  <pre><code>echo $(date) : New Log File Created &gt; Output.txt
  echo $(date) : Exiting the program &gt;&gt; Output.txt
  </code></pre>
  
  <p>It is just printing the output as is like </p>
  
  <pre><code>"$(date) : New Log File Created"
  </code></pre>