【发布时间】:2015-09-24 14:31:13
【问题描述】:
我正在尝试使用 Windows 批处理脚本将 abc.txt 的一部分复制到 def.txt 文件。
abc.txt
Connected to: Oracle Database 11g Enterprise Edition Release
11.2.0.4.0 - 64bit Production. With the Partitioning, Automatic Storage
Management, OLAP, Data Mining and Real Application Testing options.
About to export specified tables via Conventional Path ...
... exporting table table_1 2000 rows exported
..... exporting table table_2 456512 rows exported
. . exporting table table_3 So on...
Export successful with warnings. table_1 has some issue.
def.txt
Connected to: Oracle Database 11g Enterprise Edition Release
11.2.0.4.0 - 64bit Production. With the Partitioning, Automatic Storage
Management, OLAP, Data Mining and Real Application Testing options.
About to export specified tables via Conventional Path ...
Export successful with warnings. table_1 has some issue.
简而言之,我想跳过包含字符串“exporting”的行并将结果移动到 def.txt。我尝试使用for /F,但无法做到这一点。能否请你帮忙。提前致谢。
【问题讨论】:
-
感谢您的回答。 findstr /v 非常适合我。但是,如果我想单独删除点“...”,而不管 abc.txt 中的点数如何。有办法吗?
标签: file batch-file for-loop