Find duplicates
Scan a large list of files and match duplicates:
find -not -empty -type f -printf "%s\n" | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate
Written by Lars Van Casteren
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bash find hash
Authors
Related Tags
#bash find hash
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#