Skip to content

Instantly share code, notes, and snippets.

@pinscript
Created December 19, 2014 10:33
Show Gist options
  • Save pinscript/284445bc95f473dabde6 to your computer and use it in GitHub Desktop.
Save pinscript/284445bc95f473dabde6 to your computer and use it in GitHub Desktop.
Find in files recursive
Function FindRec($filepattern, $pattern) {
Get-ChildItem -Recurse -Include $filepattern | Select-String -Pattern $pattern | Group path | Select name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment