回复 1# lxh623 - $c = Get-Content -Encoding UTF8 "c.txt"
- $b = Get-Content -Encoding UTF8 "b.txt"
-
- $arr = [System.Collections.ArrayList]::new()
- $b | ForEach-Object {
- $x = $c -replace "AAA",$_
- [void] $arr.Add($x)
- }
-
- $arr | Out-File -Encoding utf8 "d.txt"
复制代码
|