指定フォルダ以下のファイルを一括置換

メモ

Get-ChildItem -Path "d:\work\pronama" -Recurse -Filter *.java | 
ForEach-Object {
  if ($_.GetType().Name -ne "FileInfo") { continue }
  $content = [System.IO.File]::ReadAllText($_.FullName)
  $replaceContent = $content.Replace("oldString", "newString");
  [System.IO.File]::WriteAllText($_.FullName, $replaceContent)
}