Harry Putnam, Sun, Mar 03, 2002 at 07:50:02PM -0800:
>
> I'm new here so not sure if there is a deb package but there is a
> program called symlinks. It does exactly what you want to do. You
> just aim it at a directory and it recurses thru and gives various
> reports depending on the flags you give it. Probably easy to find out
> if there is a debian package but I didn't know the technique yet.
$ apt-cache search symlinks (or look at packages.debian.org)
>
> That aside you can use the -type l flag to find for this too.
>
> find /path/to/tree -type l -exec ls -l {} \;
yup, what i need is
find /path/ -type l -exec /bin/bash -c "[ -f '{}' ] || rm '{}'" \;
g
--
Brought to you by Debian 3.0
Linux took 2.4.16 #1 SMP Sat Jan 5 12:52:24 EST 2002 i686 unknown
Attachment:
pgphnp5vs5RMu.pgp
Description: PGP signature