Jeremy Chadwick wrote:

Possibly you could use the example from the find(1) man page:

    find -L /usr/ports/packages -type l -exec rm -- {} +
            Delete all broken symbolic links in /usr/ports/packages.

(Note that the "+" on the end is not a typo, see the man page)

Brilliant!

Since this is *precisely* the purpose of my script, I think I will use this code instead,
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to