/ Published in: Bash

Remove all symlinks in a directory, but leave the target files.
Expand |
Embed | Plain Text
find . -maxdepth 1 -type l -exec rm -f {} \;
You need to login to post a comment.
Remove all symlinks in a directory, but leave the target files.
find . -maxdepth 1 -type l -exec rm -f {} \;
You need to login to post a comment.