[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: listing symbolic links recursively, with dir listing
From: |
Colby Allred |
Subject: |
Re: listing symbolic links recursively, with dir listing |
Date: |
Thu, 18 Jan 2001 15:03:34 -0800 (PST) |
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
> address@hidden
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
>
- listing symbolic links recursively, with dir listing, Hanser, Kevin, 2001/01/18
- Re: listing symbolic links recursively, with dir listing, Larry Jones, 2001/01/18
- Re: listing symbolic links recursively, with dir listing,
Colby Allred <=
- Re: listing symbolic links recursively, with dir listing, David Glick, 2001/01/18
- Re: listing symbolic links recursively, with dir listing, Chris Garrigues, 2001/01/18
- Re: listing symbolic links recursively, with dir listing, David Glick, 2001/01/18
- Re: listing symbolic links recursively, with dir listing, Eric Siegerman, 2001/01/18
- Re: listing symbolic links recursively, with dir listing, Larry Jones, 2001/01/19
- Re: listing symbolic links recursively, with dir listing, Greg A. Woods, 2001/01/19
Re: listing symbolic links recursively, with dir listing, Richard Cobbe, 2001/01/18
Re: listing symbolic links recursively, with dir listing, Paul Sander, 2001/01/18