Skip to content

Instantly share code, notes, and snippets.

@ktran235
Forked from conrjac/mergeCSVFiles.ps1
Created July 27, 2020 20:36
Show Gist options
  • Save ktran235/8a0e082a6db54254bccad243e801389c to your computer and use it in GitHub Desktop.
Save ktran235/8a0e082a6db54254bccad243e801389c 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)
$files = Get-ChildItem [INPUT FOLDER PATH - e.g C:\Data\]*.csv
Get-Content $files | Set-Content [OUTPUT FILE PATH - e.g C:\Data\MergedCsvFile.csv]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment