Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 980 Bytes

chapter-6.md

File metadata and controls

20 lines (12 loc) · 980 Bytes

Chapter 6 | Play with Pipeline

Selecting Output Culumns Select-Object

image

Sorting Output by Column Value Sort-Object

image

Filtering Output Rows Where-Object

  • The condition statement(s) can be written in script block within curly braces i.e. Where-object {ConditionalStatement}
  • Objects which are being transferred through PipeLine from one CmdLet to other is denoted as $_
  • The property of these objects can be accessed via Dot . Symbol i.e. $_.Name

image

Looping through Output Rows ForEach-Object

image