Varun Gupta
Varun Gupta

Reputation: 1457

Merge One CSV file into another

I have path1\sample1.csv and path2\sample2.csv file with same column attributes. I need to merge both files with different path into path1\sample1.csv using PowerShell.

Upvotes: 0

Views: 166

Answers (1)

Goyuix
Goyuix

Reputation: 24370

Something like this?

Import-CSV path\sample1.csv | Export-CSV path1\sample1.csv
Import-CSV path\sample2.csv | Export-CSV path1\sample1.csv -Append -NoTypeInformation

Upvotes: 3

Related Questions