<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Csv on Yoke Keong</title><link>https://yokekeong.com/blog/csv/</link><description>Recent content in Csv on Yoke Keong</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 16 Feb 2017 11:00:08 +0000</lastBuildDate><atom:link href="https://yokekeong.com/blog/csv/index.xml" rel="self" type="application/rss+xml"/><item><title>Find difference between CSV files using PowerShell</title><link>https://yokekeong.com/find-difference-between-csv-files-using-powershell/</link><pubDate>Thu, 16 Feb 2017 11:00:08 +0000</pubDate><guid>https://yokekeong.com/find-difference-between-csv-files-using-powershell/</guid><description>&lt;p&gt;If you are on Windows, you can use PowerShell to find the differences between two CSV files. Sample code below:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#6c6f74"&gt;1&lt;/span&gt;&lt;span&gt;$file1 = import-csv -Path &amp;#34;D:\path\to\file1.csv&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#6c6f74"&gt;2&lt;/span&gt;&lt;span&gt;$file2 = import-csv -Path &amp;#34;D:\path\to\file2.csv&amp;#34;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#6c6f74"&gt;3&lt;/span&gt;&lt;span&gt;Compare-Object $file1 $file2 -property column_to_identify_row -IncludeEqual&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can refer to &lt;a href="https://blogs.technet.microsoft.com/stefan_stranger/2011/02/08/compare-two-different-csv-files-using-powershell/"&gt;this article&lt;/a&gt; for more details.&lt;/p&gt;</description></item></channel></rss>