I want to search one string e.g. "main" in my project on windows OS recursively. I searched that and find a solution Windows recursive grep command-line
I applied same with two different approach, and result is not as expected.
e.g. my approach
findstr /S "main" *.cpp
but when I choose
findstr /S "int main" *.cpp
I am not getting only my main function. What is the difference between these two approaches? is it wrong to provide strings with space?
C++
? – Warmfindstr
is not directly related to programming and the fact that you are searching source files is IMHO irrelevant. This question would be better served on SuperUser. – Swoonfindstr
tag. Thanks P0W.. Thanks @Mat – Paine