So let's assume I have:
dest/dir/file1
dest/dir/file2
dest/dir/subdir/subfile1
dest/dir/subdir/subfile2
and
src/dir/file3
src/dir/subdir/subfile3
src/dir/newdir/anotherfile
... and let's assume there are thousands of files and subdirectories.
Now I want to move all the new files from src to dest, to their respective directories, creating new subdirectories when needed. This would be the equivalent of "cp -a src/dir dest/", but as a move operation. The obvious command "mv src/dir dest/" fails as the directory already exists in the destination.
How can I do this with one command?
src/dir/file1, do you want to overwrite it on thedestcopy? or preserve the older copy there? – nik Sep 7 '09 at 13:07