Skip to content

Instantly share code, notes, and snippets.

@anroopak
Created May 24, 2019 13:09
Show Gist options
  • Save anroopak/dab2d37d3cec6a4e09c640c1b9c4dd6e to your computer and use it in GitHub Desktop.
Save anroopak/dab2d37d3cec6a4e09c640c1b9c4dd6e to your computer and use it in GitHub Desktop.
Script to merge small CSVs
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