Skip to content

Instantly share code, notes, and snippets.

@kurema
Created September 1, 2021 11:19
Show Gist options
  • Save kurema/9d531681517bfbd7a62efda813877ce2 to your computer and use it in GitHub Desktop.
Save kurema/9d531681517bfbd7a62efda813877ce2 to your computer and use it in GitHub Desktop.
Powershellでファイルの内容で置換する方法をメモ
echo "test" > .\out.txt
$text=Get-Content .\out.txt
$text=$text.Replace("te","fa")
Write-Output $text | Out-File out2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment