Powershell FOR und Arrays

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 $trees = @("Alder","Ash","Birch","Cedar","Chestnut","Elm")

 foreach ($tree in $trees) {
   "$tree = " + $tree.length
 }