I have a batch to check the duplicate line in TXT file (over one million line) with 13MB, that will be running over 2hr...how can I speed up that? Thank you!!
TXT file
11 22 33 44 . . . 44 (over one million line) Existing Batch
setlocal set var1=* sort original.txt>sort.txt for /f %%a in ('type sort.txt') do (call :run %%a) goto :end :run if %1==%var1% echo %1>>duplicate.txt set var1=%1 goto :eof :end
Get-Content .\example.txt | Group-Object | Where { $_.Count -ne 1 }