title: Powershell - OR operator in Select-string
body: <p>In powershell is that a way to put multiple search pattern ? Example below command, I want to search those string that has ASA or TMP. But it doesn't work. The search should match as a single word example: ASA is true but TIASAP is false</p>
  
  <pre><code>Get-ChildItem E:\Test\Workflow -Exclude *.bak -Recurse | Select-String -pattern "ASA" -or "TMP" -SimpleMatch | Where-Object LineNumber -le 50 | group path | select name 
  </code></pre>