Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Compare two csv files and ouput the difference

$
0
0

Hi

I have two csv files

Oldcsv
 

ServerIPState
Box1192.168.25.1Enabled
Box2192.168.25.2Enabled
Box3192.168.25.3Enabled

 newcsv

ServerIPState
Box1192.168.25.1Enabled
Box2192.168.25.2Disabled
Box3192.168.25.3Disabled

OUtput should be

ServerIPOldStateNewState
Box2192.168.25.2EnabledDisabled
Box3192.168.25.3EnabledDisabled

 

Actuall files contains thousand of boxes.
I have tried compare-object  with passthru . But unable to get the desired result. Please Assit/Guide Me.

Thanks
Neo

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles