xudaweb 当前离线
二级士官
1:c124e04 2:c147db4 3:c1500a4 4:c1500a1 5:c147db1复制代码
1100-B 1307-C 1107-B 1124-H 1126-F复制代码
1:c124e04:1100-B 2:c147db4:1307-C 3:c1500a4:1107-B 4:c1500a1:1124-H 5:c147db1:1126-F复制代码
评分人数
920168 当前离线
@echo off setlocal enabledelayedexpansion set n1=0 for /f "delims=" %%a in (1.txt) do ( set /a n1=n1+1 set n2=0 for /f "delims=" %%b in (2.txt) do ( set /a n2=n2+1 if !n1! equ !n2! ( echo %%a:%%b>>c.txt ) ) ) pause复制代码
TOP
awk 当前离线
上尉
paste -d ":" a.txt b.txt >c.txt复制代码
545810831 当前离线
@echo off&setlocal enabledelayedexpansion set txt=a.txt&call :sta set txt=b.txt&call :sta pause :sta set /a n+=1 set m=0 for /f "delims=" %%i in (!txt!) do ( set /a m+=1 set "_!n!!m!=%%i" if !n! equ 2 call echo %%_1!m!%%:%%_2!m!%% ) goto :eof复制代码
CrLf 当前离线
论坛巡查
Hello123World 当前离线
荣誉版主
@echo off&SetLocal EnableDelayedExpansion For /f "delims=: tokens=1*" %%i in ('findstr /n ".*" a.txt') do set _%%i=%%j (For /f "delims=: tokens=1*" %%i in ('findstr /n ".*" b.txt') do ( Set n=%%i Call echo %%_!n!%%:%%j ))>c.txt start c.txt pause&exit复制代码
bluewing009 (九影)当前离线
少校
rat 当前离线
@echo off (for /f "delims=" %%a in (A.txt) do ( set /p b= call echo %%a:%%b%% ))<B.txt>C.txt pause>nul复制代码
findstr /n .* B.txt>tmp1 find /n /v "" <A.txt>tmp2 (for /f "tokens=2*delims=]:" %%a in ('fc /lb1000 /n tmp1 tmp2^|sort') do ( if not defined . ( set /p=%%b<nul set .=. ) else ( set .= echo;:%%b ) ))>C.txt del /q tmp? pause复制代码
(for /f "delims=" %%a in ('findstr .* A.txt') do ( set "a=%%a" setlocal enabledelayedexpansion set /p b= echo !a!:!b! endlocal ))<B.txt>C.txt pause>nul&exit复制代码