Here's the best way to describe this:
dirA dir1 file1.txt file3.txt dirB dir1 file1.txt file2.txt
I want to copy the contents of dirB into dirA.
cp -R dirB/* dirA would delete
dir1 and copy the files, resulting in:
dirA dir1 file1.txt file2.txt
But I want to merge them (like it would on Windows) and end up with:
dirA dir1 file1.txt file2.txt file3.txt
Suggestions? I've tried
ditto, but that seems to ignore the recursive part and just dump all the files in the top-level folder.