Convert symbolic links into corresponding target files [duplicate]
cp --remove-destination "$(readlink <symlink>)" <symlink>
While Ignacio's is a good reply, I wanted to automate the process for every file that is a symlink in the current directory and subdirectories.
This does the trick:
find . -type l -exec cp \"{}\" \"{}.tmp$$\" \; -exec mv \"{}.tmp$$\" \"{}\" \;
Hope this helps!