find /path/to/dir -type l -exec sh -c 'cp --remove-destination "$(readlink "{}")" "{}"' \;
April 24, 2012 — bashoneliners
sh
-exec
readlink
The BSD implementation of cp does not have the --remove-destination flag.
cp
--remove-destination