Find-TextInFile
Last updated
Was this helpful?
Searches files for matching text and displays selectable results.
Module
OSD
Platform
WinPE (amd64 / arm64)
Recursively searches files under a path using Select-String, displays matching lines in Out-GridView, and opens selected files in Visual Studio Code when available.
Find-TextInFile [-Path] <String> [-Text] <String> [[-Include] <String[]>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]-Path
String
True
Root path to search recursively.
-Text
String
True
Text pattern to search for.
-Include
String[]
False
File include pattern(s) used by Get-ChildItem during the recursive search.
Last updated
Was this helpful?
Was this helpful?
Find-TextInFile -Path C:\Logs -Text Error -Include *.log
Searches all .log files in C:\Logs for Error and shows the matches.
