title: Directory check and mv command
body: <p>I want to check if a directory is not empty then move it to another directory else move on to the next directory.</p>
  
  <p>I know it possible but getting my "if's" and "then's" mixed up. This is what I have done so far:</p>
  
  <pre><code>    if [ "$(ls -A /Volumes/Editorial\ Data/Photography/Digital\ Photographer/Content\ King\ DP)" ]; then
         echo "Not Empty"
      else
         echo "Empty"
      fi
      mv -n /Volumes/Editorial\ Data/Photography/Digital\ Photographer/Content\ King\ DP/* /Volumes/SAN\ CK1/Content\ King/2015/Magazines/Digital\ Photographer
  </code></pre>
  
  <p>The purpose of this script is to in sequence check 20+ separate directories for contents, each has a corresponding directory on another disk and if it finds anything in the source directory it moves it to the destination directory.</p>
  
  <p>Once I get this one right I need to string 20 or more directories to check and move in a single script.</p>