hardlink is a tool which replaces multiple copies of a file with hardlinks. Inspiration came from http://code.google.com/p/hardlinkpy/, but no code has been used. It was rewritten from scratch because hardlinkpy code was not very readable and written against old Python versions. The program requires Python 2.5 or newer, and should work with Python 3 after running 2to3 on it.