I am simply comparing 2 .csv files using compare-object with two fields of data and I am getting the expected results but the output format is just different . How do I extract the information from the results?
Compare-Object $list1 $list -IncludeEqual |Where-Object { $_.SideIndicator -eq '<=' } | ft *
InputObject SideIndicator
"ABC123","4/11/2016 9:06:01 AM" <=
"XYZ456","4/11/2016 10:21:40 AM" <=
"FOO789","4/11/2016 10:12:43 AM" <=
How can I extract individual csv values from this output ?
Compare-Object $list1 $list -IncludeEqual |Where-Object { $_.SideIndicator -eq '<=' } | Select-Object -ExpandProperty INputObject$lists. Get-Content or Import-CSV?