[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to search for symlinks pointing to directories?
From: |
Peng Yu |
Subject: |
How to search for symlinks pointing to directories? |
Date: |
Sat, 18 Apr 2015 11:02:14 -0500 |
Hi,
I don't see there is a way to search for symlinks pointing to
directories natively in find.
This can be done by using -exec and test. But I want to avoid using
-exec. Is there a way to such a search natively in find? Thanks.
-type c
File is of type c:
b block (buffered) special
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic link; this is never true if the -L option or the
-follow option is in effect, unless the symbolic link is
broken. If you want to search for symbolic links when -L
is in effect, use -xtype.
s socket
D door (Solaris)
--
Regards,
Peng
- How to search for symlinks pointing to directories?,
Peng Yu <=