Instantly share code, notes, and snippets.

Embed
What would you like to do?
$configFiles = Get-ChildItem . *.js -rec
foreach ($file in $configFiles)
{
(Get-Content $file.PSPath) |
Foreach-Object { $_ -replace "TextToFind", "TextToReplaceBy" } |
Set-Content $file.PSPath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment