Re: finding dead links

Shawn Bayern (shawn.bayern@yale.edu)
Tue, 23 Feb 1999 00:19:11 -0500 (EST)

On Mon, 22 Feb 1999, Ken Lai wrote:

> Is there a more elegant way than
> find / -type l -exec ls -lF \{ \} \;

You mean \{\} there, don't you? The space isn't correct.

> and trying to identify dead ones?

What do you mean by 'dead' links? Do you mean symlinks that don't point
to a valid file? If so, you can use something like

find . -type l -exec stat \{\} \; > /dev/null

Otherwise, I'm not quite sure what you mean...

Shawn