Yoke Keong

Find difference between CSV files using PowerShell

If you are on Windows, you can use PowerShell to find the differences between two CSV files. Sample code below:

1$file1 = import-csv -Path "D:\path\to\file1.csv"
2$file2 = import-csv -Path "D:\path\to\file2.csv"
3Compare-Object $file1 $file2 -property column_to_identify_row -IncludeEqual

You can refer to this article for more details.

<< Previous Post

|

Next Post >>

#Csv #Powershell