How can you replace all symbolic-links in a directory (and children) with their targets on Mac OS X? If the target is not available, I'd prefer to leave the soft link alone.
Replace symbolic-link with target
mac-osxsymbolic-link
Related Topic
- Linux – Setup symbolic link where users can access it with FTP
- How to update a symbolic link target (ln -f -s not working)
- Using symbolic links with git
- Execute cgi script from directory that is a symbolic link
- Symlink not updating as expected when using an absolute with relative path
- Linux – Show symbolic links AND their targets in web directory listing (apache)
Best Answer
If you are using mac OSX aliases, then
find . -type l
won't come up with anything.You can use the following [Node.js] script to move/copy the targets of your symlinks to another directory: