(Get-Content file.txt) |
Foreach-Object {$_ -replace '[MYID]','MyValue'} |
Out-File file.txt
window powershell 替换文本的字符
最新推荐文章于 2025-06-20 19:33:54 发布
(Get-Content file.txt) |
Foreach-Object {$_ -replace '[MYID]','MyValue'} |
Out-File file.txt