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"
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"