Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Compare Two CSV Files.

$
0
0

Hi,

I have two csv files as shown below.

CSV1            

COLA    COLB

1700 8
1800 4
1800 13
3100 12
3100 13

CSV 2

COL A   COL B

1700 17
1700 8
1701 14
1800 3
3100 12
3100 13
3100 14
3100 15
3100 5
3100 6

I need only those rows from CSV 1 to show up in the resultant csv, which are not in CSV 2

Hence resultantoutput should be

CSV 3

COL A COL B

1800 4
1800 13

I am using the Compare-Object function, however that is giving me a comparison. I am not interested in those rows which are not in CSV 1, however there in csv 2 to show up in my output.

Appreciate your help


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>