CODE: [Copy to clipboard]@echo off for /f "tokens=1* delims=:" %%a in ('findstr /n .* test.txt') do echo 第%%a行:%%b pause>nul