Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!uh!glex From: glex@uh.msc.umn.edu (Jeffrey Gleixner) Newsgroups: comp.unix.questions Subject: find & symbolic links Message-ID: <1028@uc.msc.umn.edu> Date: 4 Jan 90 04:49:43 GMT Sender: news@uc.msc.umn.edu Reply-To: glex@uh.UUCP (Jeffrey Gleixner) Organization: Minnesota Supercomputer Center, Minneapolis, MN Lines: 22 How can I use find to search through a symbolic link? I wrote a C program that, as an option, it will try to search through the files and list the name of the file that have the matching string. system("grep -l string `find . -print`") but it bombs with: grep: Read error on ./"linked file": Is a directory (it is a symbolic link to a directory). Is it possible to ... grep -l string `find . (if it is -type l then cd to the file; grep -l string...) -print` ??? I know that the symbolicly linked directory won't have any links back to my directory. Can anyone help? Thanks glex@msc.umn.edu