Created
April 18, 2016 15:43
-
-
Save zhujack/39a2547cd027b0b84a9d1e67e6d21b0a to your computer and use it in GitHub Desktop.
Convert symlink to regular file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Use find | |
# | |
for f in $(find . -maxdepth 1 -type l);do cp --remove-destination $(readlink $f) $f;done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment