Created
September 4, 2020 19:50
-
-
Save asolera/789528f5e9fd5bb7ade202e3b55beab4 to your computer and use it in GitHub Desktop.
Script to merge CSV files without duplicating headers
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 | |
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