Assumed y directory structure looks as follow:
And under each sub dir there are some log files ended with .log.
Now I know how to list all these log files with:
find . -type f -name "*\.log"
Assumed now there is a string called "Hello World" inside some of these files. How can I find out these files? I try followings but failed
grep "This is" | find . -mtime 0 -type f -name "*\.log"