CODE: [Copy to clipboard]for /f "tokens=1,2 delims=:" %i in ('findstr /n .* a.TXT') do >>a_.txt echo %i^|test^|%j