Created
July 20, 2020 18:21
-
-
Save PanJarda/8276868e1916dd7d64edd03c5241da16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# | |
# csv format: | |
# firstname, lastname, tel | |
# | |
# ./csv2vcf.awk [filename.csv] > out.vcf | |
BEGIN { | |
FS="," | |
OFS="" | |
} | |
{ | |
print "BEGIN:VCARD" | |
print "VERSION:2.1" | |
print "N:",$2,";",$1,";;;" | |
print "FN:",$1," ",$2 | |
print "TEL;CELL:",$3 | |
print "END:VCARD" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment