title: How to test if directories starting with "xx" exist?
body: <p>How to test directories starting with "xx" exist. such as <code>xx-a/ xx-b/ xx-c/</code>. How to test them exist. </p>
  
  <pre><code>packagePath="xx*"
  
  if [[ -d $packagePath ]]; then
      rm -rf $packagePath
  fi
  </code></pre>
  
  <p>I try this but not work.</p>