Eric Siegerman writes:
find . -type l -print | xargs ls -l
might be faster, since it doesn't require a fork/exec for each
symlink (to be honest, I don't actually know how "find -ls" is
implemented; there may not be any improvement if, like xargs,
it batches them up).
It's even
[ On Friday, January 19, 2001 at 11:25:43 (-0500), Larry Jones wrote: ]
Subject: Re: listing symbolic links recursively, with dir listing
Eric Siegerman writes:
find . -type l -print | xargs ls -l
might be faster, since it doesn't require a fork/exec for each
symlink (to be honest
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
Hanser, Kevin writes:
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
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
Lo, on Thursday, January 18, Hanser, Kevin did write:
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
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
From: David Glick [EMAIL PROTECTED]
Date: Thu, 18 Jan 2001 15:36:52 -0800 (PST)
Or you might try:
find . -type l -exec ls -l {} \;
Or (depending on your version of find):
find . -type l -ls
(When I taught an Intro to Unix course, I recommended that my students re-read
the find man
You make it too simple. From the "Real programmers don't eat quiche" manual:
"If it was hard to write, it should be hard to understand and harder to modify"... g
David Glick
Transmit Consulting, Inc
619-475-4052
[EMAIL PROTECTED]
- Original Message -
From: David Glick [EMAIL
Doesn't this do the trick?
find . -type l -print | xargs ls -l
--- Forwarded mail from [EMAIL PROTECTED]
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
On Thu, Jan 18, 2001 at 05:42:52PM -0600, Chris Garrigues wrote:
From: David Glick [EMAIL PROTECTED]
Date: Thu, 18 Jan 2001 15:36:52 -0800 (PST)
Or you might try:
find . -type l -exec ls -l {} \;
Or (depending on your version of find):
find . -type l -ls
This:
find .
11 matches
Mail list logo