Created
May 9, 2015 09:08
-
-
Save mshirdel/2b8eb70a4182fc906a31 to your computer and use it in GitHub Desktop.
Find duplicate files in bash
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 -exec echo \"{}\" \;> files.list | |
cat files.list | xargs md5sum > files-hash.list | |
sort files-hash.list | uniq -d --check-char=32 > result.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment