Commit Diff


commit - 54550e6b0c5d12a63c77e2ba4529e5490086fb44
commit + 0a28168ca9e71020fde1dbc2b8af7526f0407e1b
blob - /dev/null
blob + 00c2e87aa6239decda6278fd99b084fc758a81a3 (mode 644)
--- /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 }