I'm trying to do a text search in some files that share a similar directory structure, but are not in the same directory tree, in GNU/Linux.
I have a web server with many sites that share the same tree structure (Code Igniter MVC PHP framework), so I want to search in a specific directory down the tree for each site, example:
Where * is the site name. And from those application directories, I want to search all the tree down to its leaves, for an *.php file that has some text pattern inside, let's say "debug(", no regular expression needed.
I know how to use find and grep but I'm not good at combining them.
How would I do this?
Thanks in advance!