Skip to content

Instantly share code, notes, and snippets.

@adrienjoly
Created March 1, 2012 09:37
Show Gist options
  • Save adrienjoly/1948569 to your computer and use it in GitHub Desktop.
Save adrienjoly/1948569 to your computer and use it in GitHub Desktop.
mac os script to detect duplicate files recursively, and store the list in a text file. taken from: http://hints.macworld.com/article.php?story=20010828211333805
find . -size +20 \! -type d -exec md5 -r {} \; | sort | tee /tmp/f.tmp | cut -f 1 -d ' ' | uniq -d | grep -hif - /tmp/f.tmp > dup.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment