标签: batch-file findstr
所以我正在尝试编写一个批处理脚本来读取文件并打印出不包含特定字符串的行。 我知道如果找到字符串,Findstr可以输出该行,但我想做相反的事情。 例如:
Some text errorcode:0 Some more text errorcode:0 Different text errorcode:1
我想输出不包含字符串的行' errorcode:0' 有什么指针吗?
答案 0 :(得分:1)
findstr / v感谢Ken Y-N的回答。