I've made a mistake and copied +16000 dirs into the home dir of a website. Now the home dirs and the dirs copied are in the same tree. My problem is of course not to delete the dirs which were originaly on the home dir and only the copied dirs... And (important) there was perhaps same dir name in the home dir, so the 2 have fusionned!...
My idea is to list the difference between the dir and the home dir then use this file to make a bash delete script. But I can't find the right command to have the list.. I tryied this but with no success:
comm <(ls DIR1) <(ls DIR2)
Any idea please?