파일에서 모든 문자열을 PowerShell로 바꾸려면 어떻게해야합니까? PowerShell을 사용 [MYID]하여 주어진 파일에서 발생하는 모든 정확한 항목을로 바꾸고 싶습니다 MyValue. 가장 쉬운 방법은 무엇입니까? 사용 (V3 버전) : (Get-Content c:\temp\test.txt).replace('[MYID]', 'MyValue') | Set-Content c:\temp\test.txt 또는 V2의 경우 : (Get-Content c:\temp\test.txt) -replace '\[MYID\]', 'MyValue' | Set-Content c:\temp\test.txt (Get-Content file.txt) | Foreach-Object {$_ -replace '\[MYID\]',..