Skip to content

Instantly share code, notes, and snippets.

@brunoluiz
Last active July 18, 2017 20:13
Show Gist options
  • Save brunoluiz/8805e350303dfcd0bda277ed2059b0a1 to your computer and use it in GitHub Desktop.
Save brunoluiz/8805e350303dfcd0bda277ed2059b0a1 to your computer and use it in GitHub Desktop.
concat-csv.sh
#!/bin/bash
head -1 $2 > $1
for filename in ${@:2}; do sed 1d $filename >> $1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment