Skip to content

Instantly share code, notes, and snippets.

@SuryaElite
Created October 13, 2014 12:03
Show Gist options
  • Save SuryaElite/64c85ee5ce993aa2a9d3 to your computer and use it in GitHub Desktop.
Save SuryaElite/64c85ee5ce993aa2a9d3 to your computer and use it in GitHub Desktop.
Merge all the CSV to a Large CSV file in a Folder.
# This program will merge all the csv files to a single large file. Headers should be same.
# sampleFile.csv = Provide a file that contains the header of csv.
{ head -n1 sampleFile.csv; for f in *.csv; do tail -n+2 "$f"; done; } > largeFile.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment