Replace soft link with the original filePosted: February 11, 2016
So you have a directory which contains soft aka symbolic links or symlinks. You want them gone, replaced with the actual files they are pointing to.
This one-liner will do the job:
for i in $(find . -maxdepth 1 -type l); do cp --remove-destination $(readlink $i) $i; done