I'm trying to compare 2 volumes, which mainly have the same content, but in completely different folder structures. (Around 2 million files.)
I want to see which files are ONLY in 1 folder, not the other -- based on size & name.
I tried this:
find /Volumes/1/ /Volumes/2/ -not -empty -type f -printf "%D\t%s\t%f\n" | sort -t$'\t' -k2 -n | uniq -uf1 | sort
The idea is to get a list of all files, with device, size, and name, then remove all the duplicates.
... but it's not working. I still get files common to both drives in my result.
Ideally I'd also want to include the full path in the results list, but I don't know how to include that without messing up the sorting/uniq-ing.