BAT文本A与文本B,一行对一行合并实例
栏目:实用记录
时间:2017-08-24 21:39
@echo off&setlocal EnableDelayedExpansion
set a=0
set b=0
for /f "delims=" %%a in (1.txt) do (
set /a a+=1
for /f "delims=" %%a in (2.txt) do (
set /a b+=1
if "!a!"=="!b!" (
echo %%a#%%b>>合并后.txt
)
)
)