more on searching text files with powershell
- Sean O'Shea
- Sep 25, 2019
- 1 min read
The powershell script discussed in last night's Tip can be modified to search for multiple strings, and specify whether or not your search should be case sensitive:
Select-String -Path C:\FooFolder\txt\*.txt -pattern Art,Beauty,Law -CaseSensitive
Simply separate the strings to search for with commas, and then enter the condition, -CaseSensitive at the end.






