I am searching for the definition of a macro in a project containing hundreds of source code files.
I am fairly sure the macros are all defined in a single file.
If I do a grep -r search for a single macro, over 1000 hits occur.
I would like to search each file, and find those files containing both macro names.
Can this be done with grep?
For example something like this:
grep -r "MACRO1" AND "MACRO2" ./