cawasaki
asked on
compare 2 csv file
i need to compare 2 csv file contain list of server:
the first file contain:
server1
server2
server3
the second file:
server0
server30
server1
server3
server2
server40
i need to compare this 2 csv file and only export the difference, the result will be:
server0
server30
server40
thanks for help
the first file contain:
server1
server2
server3
the second file:
server0
server30
server1
server3
server2
server40
i need to compare this 2 csv file and only export the difference, the result will be:
server0
server30
server40
thanks for help
ASKER
hello oBdA
Test it but the result is not correct, i have get the 2 line not present in first csv plus other line present in the 2 csv file
Test it but the result is not correct, i have get the 2 line not present in first csv plus other line present in the 2 csv file
ASKER
test it gain, i dont now why every time it add this servername
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi,
the last one work :)
thanks
the last one work :)
thanks
If you want names as well that appear only in the first file, but not in the second, just remove the line "Where-Object ..."
Open in new window