find duplicate files mac terminal ProjectXcode

Another option is to use fdupes:

brew install fdupes
fdupes -r .
fdupes -r . finds duplicate files recursively under the current directory. Add -d to delete the duplicates — you'll be prompted which files to keep; if instead you add -dN, fdupes will always keep the first file and delete other files.