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

How to Merge 2 csv files

$
0
0

Hi All

I have requirement where I have log file generated in csv format

ex:

http://www.g.com,1000000,200000

http://www.y.com,1000000,32323

http://www.h.com.1000000,232

This above file generated yesterday

and today output of the csv file is as below

ex:

http://www.g.com,1000000,12121212

http://www.h.com.1000000,122323

http://www.differnece.com,1000000,12323

http://www.ddfdfsdfsdf.com,1000000,12

I need to generate to csv file comparing and merging these 2 files

final output should be like

http://www.g.com,1000000,(12121212-200000)

http://www.y.com-----Deleted

http://www.h.com.1000000,(122323-232)

http://www.differnece.com,1000000,12323

http://www.ddfdfsdfsdf.com,1000000,12

 

Any help will  be really appreciated since I am new to  powershell

 

Thanks Anand


Viewing all articles
Browse latest Browse all 6937

Trending Articles