narcorp
Guest
(25 October, 2019 - 04:14 PM)Lucian Wrote: Show More
I really want you to know that you're fucking great!
Lol. No problem. Glad I could help.
Domain Update: Our Forum has moved! Please visit us at Damaged.gg for the latest updates.
(25 October, 2019 - 04:14 PM)Lucian Wrote: Show More
I really want you to know that you're fucking great!
(24 October, 2019 - 08:40 PM)Dayvx Wrote: Show More
when you remove duplicates it should remove the capture
(25 October, 2019 - 03:03 PM)foxegado Wrote: Show More
PowerShell yo.
Code:
Code:$InputPath = "C:\temp\ComboWCapture.txt" $OutputPath = "C:\temp\ComboNoCapture.txt" $sw = New-Object System.IO.StreamWriter $OutputPath $cnt = 0 foreach ($line in [System.IO.File]::ReadLines($InputPath)) { $cnt++ if($cnt % 1000 -eq 0) #only show progress every 1000...more frequent progress updates will slow things down { Write-Progress -Activity "Processing File $InputPath" -Status "Current Line: $cnt" } $splitline = $line.Split('|') $sw.WriteLine(([string]$splitline[0]).Trim()) } $sw.Close()