Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Created November 11, 2017 17:14
Show Gist options
  • Save Hugoberry/f5904c4a8279840f341742d30c5d9a9e to your computer and use it in GitHub Desktop.
Save Hugoberry/f5904c4a8279840f341742d30c5d9a9e to your computer and use it in GitHub Desktop.
$InFile = 'Filename.txt'
$OutFile = 'Filename2.txt'
filter replace-chars { $_ -replace '\^',';' }
if (test-path $OutFile)
{ Clear-Content $OutFile }
Get-Content $InFile -ReadCount 1000 |
replace-chars |
Add-Content $OutFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment