Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Created February 5, 2020 16:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save potatoqualitee/8758dbc6faaf02683f57d1ba5593688c to your computer and use it in GitHub Desktop.
Save potatoqualitee/8758dbc6faaf02683f57d1ba5593688c to your computer and use it in GitHub Desktop.
findshit.ps1
function findshit ($str) {
$str = [regex]::escape($str)
Select-String -Pattern $str -Path (Get-ChildItem C:\github\dbatools\*.ps* -Recurse -Exclude 'allcommands.ps1', '*.dll', "*psproj")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment