Commit Diff
--- /dev/null +++ vcf2tsv.awk @@ -0,0 +1,5 @@ +BEGIN { FS = ":" } +/^BEGIN:VCARD/ { fn = "?"; telc = 0; delete telv } +/^TEL[:;]/ { telv[telc++] = $2 } +/^FN[:;]/ { fn = $2 } +/^END:VCARD/ { for ( i = 0; i < telc; i++ ) printf "%s\t\t%s\n", telv[i], fn }