对于命令findstr str1 *.*我想添加一些将排除包含字符串str2的结果的东西.
在Linux中,这样做的方法是添加| grep -v str2(当然是grep str1 *).在Windows中是否有与-v等效的标志?
Is there an equivalent flag to
-v
in Windows?
相当于-v是/ V.
C:\Users\Todd>findstr /? Searches for strings in files. ... /V Prints only lines that do not contain a match.