Skip to content

Instantly share code, notes, and snippets.

@luiscape
Created June 27, 2016 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiscape/22b34ffe8591d4b1bdfeaad5d64106d1 to your computer and use it in GitHub Desktop.
Save luiscape/22b34ffe8591d4b1bdfeaad5d64106d1 to your computer and use it in GitHub Desktop.
Merges all CSV files into a single one.
#!/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