title: Move only directories and not files in Unix OS
body: <p>I had a directory with many files and sub-directories. To move only the sub-directories, I just learned you can use:</p>
  
  <p><code>ls -d BASEDIR/*/ | xargs -n1 -I% mv % TARGETDIR/</code></p>