Created
August 3, 2019 11:19
-
-
Save alexa-infra/f39c90415b91db3dba69e90acee7a8cf to your computer and use it in GitHub Desktop.
Find file duplicates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f | xargs -n 1 md5sum -b > all_md5.txt | |
cat all_md5.txt | awk '{print $1}' | sort | uniq -d | xargs -n 1 -I '{}' grep '{}' all_md5.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment