Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Select-String

$
0
0

Hi,

I'm trying to search for two values in a text file and only return a list of the files that have those two values, so far I only get everything back, any ideas ?

 

gci E:\test | Select-String -SimpleMatch "10", "20"

So that returns everything with 10 and 20, inc. a file that just has 10.

 

Thanks

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles