$config="a:/etc/data.xml"
$fromString='<property="suggesterConfig">'
$toString = '<property="suggesterConfig"> <void property="oknow"> <boolean>false</boolean> </void>'
(Get-Content $config).replace($fromString, $toString) | Set-Content $config
pwsh sed
发布时间 2023-06-22 08:20:22作者: fndefbwefsowpvqfx