Skip to content

Instantly share code, notes, and snippets.

@richard512
Last active March 16, 2017 19:28
Show Gist options
  • Save richard512/3bef3ec348ea889d2b69f1d4f5777438 to your computer and use it in GitHub Desktop.
Save richard512/3bef3ec348ea889d2b69f1d4f5777438 to your computer and use it in GitHub Desktop.
merge all csv files in a directory into one csv file. one header. removes header from the other files
#!/bin/bash
awk 'FNR==1 && NR!=1{next;}{print}' *.csv > _ALL.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment