#!/bin/bash
fdupes "$@" | while read A; do
	while read B; do
		if [ -n "$B" ]; then
			ln -fv "$A" "$B"
		else
			break
		fi
	done
done
