On Feb 19, 2008 8:12 PM, Eric Blake <[EMAIL PROTECTED]> wrote: > The goal here is not to delete all symlinks, just symlinks that are > broken. Under the influence of -L, does -xtype l work like -lname '*' in > detecting just the broken symlinks?
For that you want "find . -depth -type l -xtype l -delete". That is, a broken symbolic link looks like a link to both a physical and a logical view. To do the same thing with 4.1.7, use "find . -depth -type l -xtype l -exec /bin/rm -f {} \;" though in this case the -depth is not really needed. James. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils