Created
March 1, 2012 09:37
-
-
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
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 . -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