Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
Given a file name, this script verifies if it's a broken link or not. Being a broken one, it gets deleted.
This script is very useful when used together with "find" to find stray, broken links, as in "find /System/Index | RemoveBroken".
find /System/Index | RemoveBroken
This is functionally equivalent to
find /System/Index -xtype l -delete
The source code to RemoveBroken can be found here: