Find text in files using Powershell


Move to the root of the desired directory and
run the command below

Get-ChildItem .\* -include ('*.config') -recurse | Select-String -pattern "find_for_this_string"

Searching forĀ find_for_this_string
Include files of this type *.configĀ  (ex. web.config files)

Leave a Reply

Your email address will not be published.