3
Not tested on macOS, but this should work, returning all links that cannot be followed: find -L /path/to/directory -type l -print If not. then this finds all links, and for each one runs a shell command to check whether the target exists, and if not prints the path: find /path/to/directory -typ...