#findstr / Select-String
Search for text in files
findstr [options] text filesfindstr /i "error" app.logCMDCase-insensitive search
findstr /s /n "TODO" *.csCMDSearch sub-folders and show line numbers
ipconfig | findstr IPv4CMDFilter another command's output
Select-String -Path *.log -Pattern "error"PowerShellPowerShell search
Get-Content app.log | Select-String "timeout"PowerShellSearch a file's lines