From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031202 Description of problem: While trying to figure out how FC handles zeroconf networking, I stumbled on a bug whereby a combination of "find" and "-exec grep" don't work well together. Version-Release number of selected component (if applicable): findutils-4.1.7-17 How reproducible: Always Steps to Reproduce: 1. cd /etc/sysconfig 2. find . -type f -exec egrep -i zeroconf {} \; -print 3. Watch as nothing is returned. 4. cd /etc/sysconfig/network-scripts 5. egrep -i zeroconf * 6. Watch as several hits are displayed. Actual Results: find with -exec egrep didn't return any hits. Expected Results: find with -exec egrep should have returned hits. Additional info: This seems to happen with text that's somehow escaped. The above example should have returned a line with "{ZEROCONF}" in it. The curly braces may be interfering somehow.
None of the *files* in /etc/sysconfig contain that string. There is a *symlink* to a file (outside that directory) that does.. So perhaps you meant: find /etc/sysconfig -type f -o -type l -exec egrep -qi zeroconf \{} \; -print
Thank you. I thought -f would follow symlinks. Sorry for the stupidity.