Skip to content

Instantly share code, notes, and snippets.

@aaronolds
Last active August 29, 2015 14:10
Show Gist options
  • Save aaronolds/a0e0e426e7c61659662f to your computer and use it in GitHub Desktop.
Save aaronolds/a0e0e426e7c61659662f to your computer and use it in GitHub Desktop.
PowerShell
Get-ChildItem "[starting path]" -recurse -Filter [filter] | Select-String -pattern “[pattern in file filtered files]” | group path | select name
Get-ChildItem -Filter "*{filter}*" -recurse | Rename-Item -NewName{$_.name -replace '{text-to-replace}', 'replacement-text'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment