PowerShell で文字列 ( ~}}|{{Eなど) を見つけて、改行と改行 ( \r\nE ) に置き換える方法はありますか?
例えば:
$filenames = @("E:\blergfest.csv")
foreach ($file in $filenames) {
$outfile = "$file" + ".out"
Get-Content $file | Foreach-object {
$_ -replace '\~}}|{{E', '\r\nE' `
-replace '\|\r\n', '\r\n'
} | Set-Content $outfile
}