find dangling symlinks

2006-06-20 Thread Johannes Zellner

Hello,

how do I find dangling symlinks?

--
Johannes


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: find dangling symlinks

2006-06-20 Thread Owen Heisler
On Tue, 2006-06-20 at 22:16 +0200, Johannes Zellner wrote:
 Hello,
 
 how do I find dangling symlinks?

Perhaps the package called symlinks would help.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find dangling symlinks

2006-06-20 Thread Michael Marsh

On 6/20/06, Johannes Zellner [EMAIL PROTECTED] wrote:

how do I find dangling symlinks?


$ find -L path -type l

should do it.  -L tells find to follow symlinks, and -type l
(that's a lowercase ell) matches symlinks.  Since the only symlinks
that will show as symlinks when they're automatically dereferenced are
ones pointing to nothing, you should get a list of dangling links.

I tested this out, and it worked as desired, but it's possible that
there might be cases where it breaks.  In particular, long chains of
symlinks break, and I haven't checked to see if those match.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: find dangling symlinks

2006-06-20 Thread Derek
try cleanlinksOn 6/20/06, Michael Marsh [EMAIL PROTECTED] wrote:
On 6/20/06, Johannes Zellner [EMAIL PROTECTED] wrote: how do I find dangling symlinks?$ find -L path -type lshould do it.-L tells find to follow symlinks, and -type l
(that's a lowercase ell) matches symlinks.Since the only symlinksthat will show as symlinks when they're automatically dereferenced areones pointing to nothing, you should get a list of dangling links.
I tested this out, and it worked as desired, but it's possible thatthere might be cases where it breaks.In particular, long chains ofsymlinks break, and I haven't checked to see if those match.--Michael A. Marsh
http://www.umiacs.umd.edu/~mmarshhttp://mamarsh.blogspot.com--To UNSUBSCRIBE, email to 
[EMAIL PROTECTED]with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: find dangling symlinks

2006-06-20 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johannes Zellner wrote:
 Hello,
 
 how do I find dangling symlinks?

Visually, or all of them in a tree?

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is common sense really valid?
For example, it is common sense to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that common sense is obviously wrong.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmFtPS9HxQb37XmcRAo1dAJ9kbjzpy8hSuSUXeVWPwivxo97tLwCbB7P+
TVnqifbuWcDgWe1uVlAg96U=
=l9IJ
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]