Created
January 20, 2020 20:02
-
-
Save ml4den/4d303a90cdd24d11762f2a7edc86bb9c to your computer and use it in GitHub Desktop.
Find the unique values in the second list with PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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