http://www.xxx.com/123/xxxxx.dat http://www.xxx.com/123/44444/xxxxx.dat
--------------------------------------
@echo off
setlocal ENABLEDELAYEDEXPANSION
for /f "delims=" %%a in (b.txt) do (
set xxxx=%%~na.git
for /f %%b in ('findstr /i "\<!xxxx!\>" b.txt') do (
echo %%b >>12345.txt)
echo ------>>12345.txt)
这是我写的批处理,执行结果不够完美。因为有重复。。。 输出结果 :