Created
June 27, 2016 15:37
-
-
Save luiscape/22b34ffe8591d4b1bdfeaad5d64106d1 to your computer and use it in GitHub Desktop.
Merges all CSV files into a single one.
This file contains 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
#!/bin/bash | |
# | |
# Assuming files contain the same headers | |
# and that they are organized in the same | |
# way, this script merges all files from | |
# a given directory into a single file. | |
# | |
cat *.csv | grep -v ^Pool > merged.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment