Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save empiricalthought/beeae21553dea373e4eccd51e950530c to your computer and use it in GitHub Desktop.
Save empiricalthought/beeae21553dea373e4eccd51e950530c to your computer and use it in GitHub Desktop.
#!/usr/bin/env awk -f
NR > 1 {
for (i = 1; i <= header_count; i++) {
print headers[i], $i
}
}
NR == 1 {
header_count = split($0, headers)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment