Or you might try:

find . -type l -exec ls -l {} \;

David Glick
Transmit Consulting, Inc
619-475-4052
[EMAIL PROTECTED]


----- Original Message -----


find . -type l -print

finds all symbolic links in the current directory and any subdirectories.
prints their paths too.  however, it doesn't print the output like 'ls' 
does, so you'd have to do something else to get the link's target.

a better way would be to write a perl script to get all the symbolic 
links and then use readlink() to get the link's target.

Colby Allred
Advanced Hardware Architectures
http://www.aha.com/

On Thu, 18 Jan 2001, Hanser, Kevin wrote:

> I've just imported a directory structure into CVS that has a lot of symbolic
> links in it.  I've written a script to restore these links from a file that
> lists what they are and where they point.  However, I'm having trouble
> finding all the links now.  I need to be able to recursively list all the
> symbolic links, and what subdirectories they're in.  I can do a 
> 'ls -lR | grep lrwx' and that will show me all the links and where they
> point, but I can't tell what subdirectory they're in.  I need to be able to
> list them out and have the full path/filename listed...
> 
> Does anybody have any suggestions on how to do this, or know of a utility
> that will do this?
> 
> Thanx
> 
> Kevin Hanser
> System Administrator
> Merchant Internet Group
> [EMAIL PROTECTED]
> 
> 
> _______________________________________________
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

----- Original Message -----



_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to