Skip to content

Instantly share code, notes, and snippets.

@matt40k
Forked from conrjac/mergeCSVFiles.ps1
Created November 17, 2016 18:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt40k/cd23b213515509fea2631124d2f8a0f0 to your computer and use it in GitHub Desktop.
Save matt40k/cd23b213515509fea2631124d2f8a0f0 to your computer and use it in GitHub Desktop.
Powershell Script to merge multiple CSV files into one (by appending each file to the end)
$folder = 'C:\Data' #INPUT FOLDER PATH - e.g C:\Data
$files = Get-ChildItem $folder\*.csv -Exclude $folder\MergedCsvFile.csv
Get-Content $files | Set-Content $folder\MergedCsvFile.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment