Я пытаюсь скопировать часть файла abc.txt в файл def.txt с помощью командного скрипта Windows.Пропустить строку с определенной строкой из файла - Пакетный скрипт
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.
Короче говоря, я хочу, чтобы пропустить строки, которые оказывают строку "экспорт" и переместить результат def.txt. Я попытался использовать for /F
, но не смог этого добиться. Не могли бы вы помочь. Заранее спасибо.
Спасибо за ответ. findstr/v отлично подходит для меня. Но если я хочу удалить точки только «...», независимо от количества точек из abc.txt. Есть ли способ? –