CODE: [Copy to clipboard]for /f "tokens=1 delims=:" %i in ('findstr/n /r "." list.txt') do @set NUM=%i