Glossary: Command Line for IT: Bash and PowerShell
foreach
Also written: foreach loop
PowerShell's loop, written foreach ($d in $drives) { }, that runs the block once for each item in a list.
Glossary: Command Line for IT: Bash and PowerShell
Also written: foreach loop
PowerShell's loop, written foreach ($d in $drives) { }, that runs the block once for each item in a list.