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. Required fields are marked *