more on searching text files with powershell

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.