Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Merge CSV files

$
0
0

Hi,

I am writing a script that dumps output into 2 CSV files. Both CSV files contains different column headers (pulled from different data sources).

I want to merge both CSV files into a single file. The first CSV file contains more than 30+ column headers with data and another one has 5 column headers with data. I tried several ways to merge them but no luck. I am looking for a solution that can first add 2nd file with columns and their data, then first CSV with columns and there data.

Any help or pointers will be appreciated. Thanks in advance.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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