Last active
November 10, 2016 14:45
-
-
Save bcdady/cab5c71366a8311e7a04 to your computer and use it in GitHub Desktop.
Find a string within any file included in a PowerShell module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# search string within All Modules | |
# e.g. find '-function' within any file in a module | |
$env:PSModulePath | ForEach-Object { $_ -split ';' | Get-ChildItem -Filter *.ps* -Recurse | Select-String -Pattern 'Write-Log' -SimpleMatch} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment