Skip to content

Instantly share code, notes, and snippets.

@asolera
Created September 4, 2020 19:50
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 asolera/789528f5e9fd5bb7ade202e3b55beab4 to your computer and use it in GitHub Desktop.
Save asolera/789528f5e9fd5bb7ade202e3b55beab4 to your computer and use it in GitHub Desktop.
Script to merge CSV files without duplicating headers
#!/bin/bash
awk '(NR == 1) || (FNR > 1)' file_*.csv > files.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment