PowerShell Search for Text in Files with Select-String ─□✕ March 3, 2026May 5, 2026 PowerShell Tips Editor 3 min read PowerShell Search for Text in Files with Select-String Select-String is PowerShell’s grep. Learn to search one file, a folder, and recursive directories for any text pattern with line numbers.