title: mv: cannot overwrite directory with non-directory
body: <p>Is it possible to get around this problem?</p>
  
  <p>I have a situation where I need to move some files to 1 directory below.</p>
  
  <pre><code>/a/b/c/d/e/f/g
  </code></pre>
  
  <p>problem is that the filename inside <code>g/</code> directory is the same as the directory name</p>
  
  <p>and I receive the following error:</p>
  
  <pre><code>mv: cannot overwrite directory `../297534' with non-directory
  </code></pre>
  
  <p><strong>Example:</strong>
  /home/user/data/doc/version/3766/297534 is a directory, inside there is a also a file named 297534</p>
  
  <p>so I need to move this file to be inside /home/user/data/doc/version/3766 </p>
  
  <p><strong>Command</strong>
  This is what I am running: (in a for loop)</p>
  
  <pre><code>cd /home/user/data/doc/version/3766/297534
  mv * ../
  </code></pre>