Quote:
|
Originally Posted by Simerian
find has a command option that allows you to run, for instance, a grep against each file it locates. This is sometimes very useful... You'll have to check the man page for the syntax.
|
Here is your answer
Code:
find . -name 'haystack' -exec grep 'needle' {} \; -print
The -print will display the corresponding haystack for each successful needle found.
Vino