Created
May 24, 2019 13:09
-
-
Save anroopak/dab2d37d3cec6a4e09c640c1b9c4dd6e to your computer and use it in GitHub Desktop.
Script to merge small CSVs
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
csvheader=`head -1 small_0.csv` | |
ls small_*.csv | xargs sed -i '1d' | |
echo $csvheader > merged.csv | |
cat small_*.csv >> merged.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment