I have several directories that all have various symlinks in them. I want find (or another program) to find based on where the symlinks point to. For example this is how it currently works:(11:05:%) ll slinklrwxrwxrwx 1 dialout 9 2010-11-03 11:05 slink -> /opt/file(11:05:%) find / -name 'file'This is what I'd like to be able to do(11:05:%) find . -name 'file'/slink -> /opt/file
Using find to find symlinks that point to a certain pattern of files
find;symlink
find . -L -name 'file'-L means follow symbolic links and according to man it takes properties from this file. Alternativly you can write:find . -lname 'file'The second option will work with broken links.