Skip to content

Instantly share code, notes, and snippets.

@edigu
Created October 2, 2011 17:33
Show Gist options
  • Save edigu/1257675 to your computer and use it in GitHub Desktop.
Save edigu/1257675 to your computer and use it in GitHub Desktop.
Find Duplicate files in current directory (Mac)
find . -size 20 \! -type d -exec cksum {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -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