I have used rdfind, fdupes and fslint and have looked at previous posts such as this one. However the solution in the linked post does't help with files scattered in nested sub-folders. rdfind, fdupes and fslint work well, they removed a lot of duplicate files, but fail to find all of them. I still can see a lot of duplicate files that have exactly the same file size.
Is there any way that I can find all files that have the same file size scattered in nested sub-directories of a folder?
#prefix each filepath with the size of the file padded to 10 places
find . -type f -printf "%10s\t%p\n" |
sort --numeric | #sort numerically (uniq needs this)
uniq --repeated --check-chars=10 #select duplicates
See the respective manpages for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With