Skip to content

Glossary: Command Line for IT: Bash and PowerShell

ForEach-Object

A PowerShell cmdlet that runs a block once for each object in a pipeline, with $_ as the current object, and passes on whatever the block outputs.

Where the book teaches it

Related terms

$_foreachGroup-Object