Checked dozens of web pages and found this nearly satisfactory solution http://unix.stackexchange.com/questions/146197/fdupes-delete-files-aft...
However, the exclamation point in the regular expression does not seem to have the effect of clearing blank lines, so it is changed to d;
fdupes --recurse A/ B/ | sed '/^A/d; /^$/d; s/.*/"&"/' | xargs rm
But there is still a small problem. If there is a duplicate file in A, but the file is not in B, fdupes will also list it as a result, resulting in accidental deletion. Please think again
Checked dozens of web pages and found this nearly satisfactory solution
http://unix.stackexchange.com/questions/146197/fdupes-delete-files-aft...
However, the exclamation point in the regular expression does not seem to have the effect of clearing blank lines, so it is changed to d;
fdupes --recurse A/ B/ | sed '/^A/d; /^$/d; s/.*/"&"/' | xargs rm
But there is still a small problem. If there is a duplicate file in A, but the file is not in B, fdupes will also list it as a result, resulting in accidental deletion. Please think again