Revision: 9910
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 28, 2008 21:16 by jimfred
Initial Code
get-childitem "C:\Windows" -include "OEM*.inf","*.txt" -recurse -force | select-string "searchText" -List | %{$_.path }
Initial URL
Initial Description
-force will include system/hidden files. %{$_.path } will print the filepath rather than the grep-like line containing searchText -List results in 1 hit per file rather than each line containing searchText.
Initial Title
FindInFiles, PowerShell
Initial Tags
Initial Language
Windows PowerShell