Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Enumerate files (full path) that have a matching string found within
# In this example, only PowerShell files (*.ps*1) are being searched for the simple wildcard string 'servicegroup'
PS .\> gci -Path .\ -Filter *.ps*1 -Recurse -File | Select-String -SimpleMatch servicegroup | group -Property Path | select -ExpandProperty Name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.