The above answers are superior to this but I did this as an exercise
bc -l <<< $(find dirname -type f -exec sum {} /tmp/{} \; | cut -f1 -d' ' | paste -d- - -) | grep -v 0
I explained it in full here https://stackoverflow.com/a/79169637/504047