Skip to content

Instantly share code, notes, and snippets.

@idcesares
Last active April 23, 2021 19:53
Show Gist options
  • Save idcesares/4579bc4c89ab97e88f2af4f27d327c4e to your computer and use it in GitHub Desktop.
Save idcesares/4579bc4c89ab97e88f2af4f27d327c4e to your computer and use it in GitHub Desktop.
Combine multiple CSV files into one using Powershell
Get-ChildItem -Filter *.csv | Select-Object -ExpandProperty FullName | Import-Csv | Export-Csv .\combinedcsvs.csv -NoTypeInformation -Encoding UTF8 -Append
@idcesares
Copy link
Author

Notes:

  • You can change the encoding based on your csv files;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment