aove 当前离线
列兵
apang 当前离线
上将
@echo off (for /f "tokens=1,2 delims= " %%a in (1.txt) do ( for /f "delims=" %%c in (2.txt) do ( if "%%b"=="%%c" echo %%a ) ))>3.txt复制代码
TOP
yangfengoo 当前离线
上尉
>3.txt (for /f "tokens=1 delims= " %%a in ('findstr /g:2.txt "1.txt"') do echo %%a)复制代码
gawk 当前离线
少将
@echo off (for /f "delims=" %%a in (2.txt) do ( for /f "tokens=1,2 delims= " %%b in (1.txt) do ( if "%%a"=="%%c" echo %%b ) ))>3.txt复制代码