How To 'Grep' in powershell

The rapid method:

get-process | findstr foo

The proper way:

Get-Process | Where-Object {$_ | Select-String "foo"}

Example, for display thunderbird process:

get-process | findstre "thunderbird"
Docs

How To Grep in PowerShell


Revision #3
Created 9 June 2020 07:48:26 by Lauris
Updated 27 September 2020 15:10:18 by Lauris_Adm