grep (options) files.txt. ... grep "text I search" *.log. ... Select-String -Path C: emp*.log -Pattern "Contoso" ... Get-ChildItem C: emp -Filter *.log -Recurse | Select-String "Contoso"