Skip to content

Instantly share code, notes, and snippets.

@vexx32
Created October 24, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vexx32/811ec796ae0f950fc1a2732a0ca2aba9 to your computer and use it in GitHub Desktop.
Save vexx32/811ec796ae0f950fc1a2732a0ca2aba9 to your computer and use it in GitHub Desktop.
$File = Get-Content '.\File.txt'
$Output = foreach ($Line in $File) {
$Line -replace '(?<=(.*,.*){9,}),', ' '
}
$Output | Set-Content '.\NewFile.txt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment