[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems building coreutils HEAD against gnulib HEAD
From: |
James Youngman |
Subject: |
Re: Problems building coreutils HEAD against gnulib HEAD |
Date: |
Tue, 19 Feb 2008 21:30:45 +0000 |
On Feb 19, 2008 8:12 PM, Eric Blake <address@hidden> 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.
Re: Problems building coreutils HEAD against gnulib HEAD, Ralf Wildenhues, 2008/02/19