How can I do to find 2 occurrences together in a determination file using powershell?
$p = @("string1","string2")
get-content C:\log.txt | Select-String -Pattern $p
Above, the expression returns me the occurrences that have one OR string the other. It's not what I want, I want to have one E string the other.
What are the ways to do this?