同一文件中没重复的吧?写个批处理试试,(放两原文件a.txt b.txt同位置运行生成c.txt)
@echo off&cd/d "%~dp0"
echo 请等候...
for /f "usebackq delims=" %%i in ("a.txt")do (
for %%j in (%%i)do set %%j=yes)
for /f "usebackq delims=" %%i in ("b.txt")do (
for %%j in (%%i)do if defined %%j echo %%j>>"c.txt")
set/p=处理完成,正在退出... >nul
ping /n 3 127.1>nul