Skip to content

Instantly share code, notes, and snippets.

@mshirdel
Created May 9, 2015 09:08
Show Gist options
  • Save mshirdel/2b8eb70a4182fc906a31 to your computer and use it in GitHub Desktop.
Save mshirdel/2b8eb70a4182fc906a31 to your computer and use it in GitHub Desktop.
Find duplicate files in bash
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