Home Forums Programming Powershell Remove items from an array based on another array RE: Remove items from an array based on another array
bruce 1565
SSCrazy
Points: 2574
More actions
October 12, 2012 at 12:34 pm
#1548804
Here's one way, there are probably more.
foreach ($result in $results) {if ($remove -contains $result.split(",")[1]) { $results.Remove($result) }}