How to use FINDSTR in PowerShell to find lines where all words in the search string match in any order
The following findstr.exe command almost does what I want, but not quite: findstr /s /i /c:"word1 word2 word3" *.abc I have used: /s for searching all subfolders. /c: Uses specified text as a literal search string /i Specifies that the search is not to be case-sensitive. *.abc Files of type abc. The above looks for word1 word2 word3 as a literal , and therefore only finds the words in that exact order . By contrast, I want all words to match individually , in any order (AND logic, conjunction) . If I remove /c: from the command above, then lines matching any of the words are returned (OR logic