To the command findstr str1 *.*
I want to add something that will exclude the results which contain the string str2
.
In Linux the way of doing it is to add | grep -v str2
(to grep str1 *
of course). Is there an equivalent flag to -v
in Windows?
use
/V
, for example:findstr "hello world" *.cpp | findstr /V ".git\\"
The equivalent to
-v
is/V
.