This script searches every file in a directory for a particular string and replaces it with another value.
get-childItem | ForEach { (Get-Content $_ | ForEach {$_ -replace "OLDVALUE,"NEWVALUE"}) | Set-Content $_}
This script searches every file in a directory for a particular string and replaces it with another value.
get-childItem | ForEach { (Get-Content $_ | ForEach {$_ -replace "OLDVALUE,"NEWVALUE"}) | Set-Content $_}