Search text in files in PowerShell

Select-String has no -Recurse parameter, so Get-ChildItem does the recursion and pipes files into it. Returns MatchInfo objects with path, line number and the matching line.

Shell: PowerShell · Category: search · Risk level: safe

What you provide

The exact syntax, a worked example and the flag reference are behind sign-in.

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page