Author Posts

November 6, 2013 at 8:41 pm

Need to club all the CSV data into a single CSV. Culumn headers are same for all the CSVs


November 6, 2013 at 8:52 pm

$sources = '.\file1.csv','.\file2.csv','.\file3.csv'
$sources | Import-Csv | Export-Csv '.\output.csv' -NoTypeInformation

There's also an -Append switch to Export-Csv, but you don't need it if everything's in one pipeline like that.