Find difference between CSV files using PowerShell

< 1 min. read

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

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

You can refer to this article for more details.