Created
September 4, 2023 08:56
-
-
Save 5310/7ba5e069455c289ecc6daa4cc0aaccfd to your computer and use it in GitHub Desktop.
Find all the broken symlinks #script
This file contains hidden or 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
find . -type l -exec sh -c 'file -b "$1" | grep -q "^broken"' sh {} \; -print |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment