Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew minkymorgan

View GitHub Profile
View tab2json.awk
NR == 1 {sep=""}
NR > 2 {sep=","}
{
if (NR == 1) {
split($0, tags);
if (EC == "") EC = "\"";
}
else {
split($0, vals);
jrec = sep"{";