Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbulens/a6781b8ea0cbbc403530407763b6ac0a to your computer and use it in GitHub Desktop.
Save hbulens/a6781b8ea0cbbc403530407763b6ac0a to your computer and use it in GitHub Desktop.
$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