Skip to content

Instantly share code, notes, and snippets.

@anton-dudarev
Forked from Hugoberry/replace.ps1
Created January 20, 2020 16:08
Show Gist options
  • Save anton-dudarev/a80cced6cccdbe9b8447bf959977debb to your computer and use it in GitHub Desktop.
Save anton-dudarev/a80cced6cccdbe9b8447bf959977debb 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