我有A.txt文件如下:
AAA Opened successfully.
BBB Cannot connect.
CCC Opened successfully.
DDD Opened successfully.
EEE Cannot connect.
如何使用批处理文件生成B.txt(仅包括不能行):
BBB Cannot connect.
EEE Cannot connect.
谢谢,
答案 0 :(得分:3)
一衬垫
find "Cannot" <a.txt >b.txt