CODE: [Copy to clipboard]@echo off for /F "delims=: tokens=1*" %%a in ('findstr /n .* job.txt') do if %%a leq 4 echo\%%b>>tep.txt