现在我能够通过一个命令找到匹配的字符串(包含多于1个字)No active features in part. Skipping.
。如果文件包含aborting
字,我想进一步修改它以提取数据(即打印行)。
findstr /C:"No active features in part. Skipping." %ROOT%\RenewAndSaveReport\*.txt >> SkippedParts.txt
答案 0 :(得分:1)
试试这个:
FindStr/IL /C:"No active features in part. Skipping." /C:"aborting" "%ROOT%\RenewAndSaveReport\*.txt">>"SkippedParts.txt"