[lug] "find" question

Daniel Webb lists at danielwebb.us
Mon Aug 16 23:23:13 MDT 2004


I want to search a directory tree, dereferencing symbolic directory links,
but not dereferencing symbolic file links.  What is the easiest way to
accomplish this?

The -follow option to find dereferences all symbolic links.  It seems like
what I want is a new option to find: -follow-dir

I want to be able to do this:

find . -follow-dir \( -type f -a \! -type l \)

Daniel




More information about the LUG mailing list