Last active
September 14, 2021 13:41
-
-
Save karthiks/8e84097149ae946b1ebfff981598015b to your computer and use it in GitHub Desktop.
Case 3: When you want to list files containing all of texts "abc" AND "pqr" AND "xyz".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Recurse | Select-String -Pattern 'abc' -List | Select-String -Pattern 'pqr' -List | | Select-String -Pattern 'xyz' -List | Select Path | |
# With pipes '|', we are filtering the result set with additional search terms thus acing like the search for terms are AND conditional. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment