I realize there seems to be many questions on this forum for searching multiple strings inside files, but I fail to find a solution to search multiple strings inside multiple files.
Using the pipe delimited search result is always an OR statement. What I would like is something that provides an “AND” statement, be it regex or even a tool that allows multiple inputs.
I have tried dnGrep, WinGrep, PowerGrep, and BareGrep, but none of these seem to provide this feature. For those of you that grep stored procedures, I am sure that you understand my pain.
I am trying to search for cases where a couple tables that share the same generic column name exist in stored procedures and with aliasing table names this becomes a huge hassle as I can’t just simply search for TableName.ColumnName.
If anyone can help me with this that would be fantastic. If anyone knows of a tool or has written a tool themselves, this would be great. It would also be useful for searching through java and c# code.
Create a batch file, search.bat, containing the following:
search.bat takes three parameters. The first is a wildcarded file name. The second and third are the search strings. For example,
finds all the header files containing the words “deprecated” and “security”.