Robert A. Heiler edited this page Jul 28, 2017 · 4 revisions
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: