如何将一个文本文件传输到另一个文件?

时间:2018-06-12 17:07:50

标签: batch-file

我有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.

谢谢,

1 个答案:

答案 0 :(得分:3)

一衬垫

find "Cannot" <a.txt >b.txt