Doing logical OR comparisons with findstr.exe
Give this a shot, should work for you.
findstr /i "\.cpp \.h" myfile.txt
Wrap both within quotes and separate with a space. Note, you also have to escape the . in both of them.
If you need to include phrases (Space separated words) you can do it:
findstr /i /c:"IBSS" /c:"WDI Version" /c:"Soft Ap"
Or if you are getting some unwanted rows, you can exclude them using the /v
parameter too:
findstr /i /c:Hosted /c:Version /c:Driver | findstr /v /i /c:drivers /c:native
(Tested this on Windows 7 and Windows 10)