@echo off&setlocal enabledelayedexpansionset n=0for /f "delims=" %%a in (test.txt) do (set /a n+=1more +!n! test.txt | findstr /B /E /C:"%%~a" > nul || echo %%a)pause