I want to compare two objects and get only the different values. I have this code:
$a = ("this is blah blah DOG")
$b = ("Dit is blah BLAH dog")
Compare-Object -ReferenceObject $a -DifferenceObject $b
with the above code I get the following output:
InputObject SideIndicator
----------- -------------
Dit is blah BLAH dog =>
this is blah blah DOG <=
However I want only the different values in both the objects i.e. Dit and this
You don't show what your csv file looks like, so, there's that, but stepping though what you are after.
Lastly, this also sounds eerily like this Q&A
Compare two lists in Powershell