Initial checkin

This commit is contained in:
Rob Pearce 2021-06-03 08:56:54 +10:00
commit 2851d99e51
2 changed files with 1423 additions and 0 deletions

1393
t.sh Executable file

File diff suppressed because it is too large Load Diff

30
vcftocsv.awk Normal file
View File

@ -0,0 +1,30 @@
BEGIN {
uid=""
summary=""
related=""
FS=":"
printf("%s,%s,%s\n","uid","summary","related");
}
($1 == "BEGIN"){
uid=""
summary=""
related=""
}
($1 == "UID"){
uid=$2
}
($1 == "SUMMARY"){
summary=$2
}
($1 == "RELATED-TO"){
related=$2
}
($1 == "END" && uid != ""){
printf("%s,%s,%s\n",uid,summary,related);
uid=""
summary=""
related=""
}