Skip to content

Instantly share code, notes, and snippets.

@ml4den
Created January 20, 2020 20:02
Show Gist options
  • Save ml4den/4d303a90cdd24d11762f2a7edc86bb9c to your computer and use it in GitHub Desktop.
Save ml4den/4d303a90cdd24d11762f2a7edc86bb9c to your computer and use it in GitHub Desktop.
Find the unique values in the second list with PowerShell
$a=@(1,2,3,4,5,8)
$b=@(1,2,3,4,5,6,9,"ten")
$c = $b | where { -not ($a -contains $_) }
Write-Host $c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment