Created
October 13, 2014 12:03
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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