From Bugzilla Helper: User-Agent: Mozilla/4.78 [en] (Win98; U) Description of problem: When set to follow symlinks (-follow) find no longer reports the existance of symlinks in it's output. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.type "find . -type l -follow" in a directory which contains one or more symbolic links. 2. 3. Actual Results: Find produced no output Expected Results: Find should list the symlinks, and follow them listing any subsequent symlinks encountered. Additional info: Find installed from the findutils-4.1.6-2 package as part of Redhat 7.1.
You mean to use '-xtype', not '-type'. 'find -type l -follow' means: find me all the symbolic links which, when derefenced to find the (non-symlink) target, turn out to point to symlinks. Of course there are no such files. :-) In contrast, 'find -xtype l -follow' does what you want.