Deduplicate files using the command line in OSX Lion

view story

http://superuser.com – I am using OSX 10.8.4 and would like to remove duplicate files in a single flat directory if an md5 hash matches. I have looked up several answers but none of them work for me, I think because of differences in command syntax between terminal versions. Things I have tried: http://www.chriswrites.com/2012/02/how-to-find-and-delete-duplicate-file... Finding and removing duplicate files in osx with a script and some of these: http://www.commandlinefu.com/commands/view/3555/find-duplicate-files-bas... This approach feels closest: find . -size 20 (HowTos)