Converting Text Files into vCard Format
I need to convert a tab-delimited database text file into vCard Format to import into Address Book. I found a Unix Command for the Terminal at
http://www.macosxhints.com/article.php?story=20030831221023355 but I am not a programmer and don't have a clue how to safely use the terminal.
Could anybody chat with me briefly to explain the following command:
awk -F\t ' {print "BEGIN:VCARD"; print "VERSION:3.0"; print "N:"$1;
print "TEL;type=WORK;type=pref:"$2; print "END:VCARD" $3; print $3 }'
sourcefile > newfile.vcf
Is F/t a filestring? I figured out that $1, $2, $3 are field numbers. If someone can just show me the format to transform a file name data.txt located (for example) at ~/document/database/data.txt to a file named newfile.vcf, I think I could take it from there.
Thanks!
MacBook Pro Mac OS X (10.4.8)
Could anybody chat with me briefly to explain the following command:
awk -F\t ' {print "BEGIN:VCARD"; print "VERSION:3.0"; print "N:"$1;
print "TEL;type=WORK;type=pref:"$2; print "END:VCARD" $3; print $3 }'
sourcefile > newfile.vcf
Is F/t a filestring? I figured out that $1, $2, $3 are field numbers. If someone can just show me the format to transform a file name data.txt located (for example) at ~/document/database/data.txt to a file named newfile.vcf, I think I could take it from there.
Thanks!
MacBook Pro Mac OS X (10.4.8)