本帖最后由 WHY 于 2016-12-1 08:09 编辑
- @echo off & setlocal enabledelayedexpansion
- (for %%i in (*.txt) do (
- set "n="
- for /f "delims=" %%j in ('type "%%i"') do (
- set "s=%%j"
- if defined n (
- if !n! LEQ 10 set /a n+=1 & echo;!s!
- ) else (
- if "!s:abc=!" NEQ "!s!" set n=1
- )
- )
- ))>Result.Log
复制代码
|