powershell suchen und ersetzen in datei in unterordner

Morgen Zusammen,

wie mache ich so etwas am besten?

Per Notepad++ geht so etwas auch

Per Powershell geht so etwas auch

$txtFiles=get-childitem C:test *.xml -recurse
foreach ($file in $txtFiles)
(Get-Content $file.PSPath) |
Foreach-Object {$_ -replace “Wolf”, “Katze} |
Set-Content $file.PSPath

Replacing Strings in Multiple Files in Folder and SubFolders

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s