title: How to get dynamic path in a shell script?
body: <p>I am writing a script that requires to get a dynamic folder path like this.</p>
  
  <pre><code>somefolder/prefix.datetime_suffix/foldera/folderb
  </code></pre>
  
  <p>datetime is  in format YYYYMMDDHHMMSS. <strong>datetime part is changing.</strong></p>
  
  <p>In a script I need to get a full path of <em>folderb</em> to move files there.</p>
  
  <p>How can I do that?</p>