title: trying to create a script with timestamp
body: <p>I'm fairly new to bash scripting.
  I'm trying to create a directory with a timestamp and then cd into the directory.
  I'm able to create a directory and can cd into it the directory with one command. </p>
  
  <p>mkdir "build" &amp;&amp; cd "build"</p>
  
  <p>I can create the directory with data then cd into it.</p>
  
  <p>mkdir <code>date '+%m%d%y'</code> &amp;&amp; cd <code>date '+%m%d%y'</code> I am able to create this dir and cd into it with one command.</p>
  
  <p>Here is my bash script:</p>
  
  <pre><code>#!/bin/bash
  
  # mkdir $(date +%F) &amp;&amp; cd $(date +%F)
  
   mkdir build_`date '+%m%d%y'` &amp;&amp; cd build_`date '+%m%d%y'`
  </code></pre>
  
  <p>I need to create the directory with build_<code>date '+%m%d%y'</code> in the title then cd into that folder.
  I've looked online but am unable to come up with a solution.</p>
  
  <p>Thank you. </p>