Finddupes is a project mainly written in Shell, it's free.
Find duplicate files.
A bash script to find duplicate files on your file system.
Bash, SQLite 3, and md5sum.
At this point, it works well, but it has performance issues. Using it to scan your whole file system is probably a bad idea.