Загрузка данных


Get-Content .\input.txt | ForEach-Object { ($_ -split '\s+-\s+')[0].Trim() } | Set-Content .\ips_only.txt -Encoding UTF8