How to search a string in multiple files and return the names of files in Powershell?

The Solution to How to search a string in multiple files and return the names of files in Powershell? is


This should give the location of the files that contain your pattern:

Get-ChildItem -Recurse | Select-String "dummy" -List | Select Path

~ Answered on 2011-11-16 15:08:33


Most Viewed Questions: