等大神- @echo off
- set /a n=0
- :start
- for /f "tokens=* delims=" %%a in ('more +%n% "1.txt"') do (
- for /f "tokens=* delims=" %%b in ('more +%n% "2.txt"') do (
- echo %%a ^| %%b >>3.txt
- echo %%b >aa
- findstr /c:"NewTime" aa && goto end
- set /a n+=1
- goto start
- )
- )
- :end
- del aa
复制代码
|