title: Directory truncation and converted to string issue in macOS Bash shell script
body: <pre><code>thisPath="/Users/admin/Sites/codebase/projects/DrawingProject"
  modifiedPath="$($thisPath|rev|cut -d '/' -f-2|rev)"
  
  printf "[[[[[  $modifiedPath ]]]]]\n"
  </code></pre>
  
  <p>In macOS BASH How can I get the following to print:</p>
  
  <pre><code>[[[[[  projects/DrawingProject ]]]]]
  </code></pre>
  
  <p>Right now I get a directory error</p>
  
  <p>Thank you. -Jonathan</p>