[PLUG] Script to extract .vcf fields

Jim Garrison jhg at jhmg.net
Tue Jan 12 00:38:40 UTC 2016


On 1/11/2016 3:17 PM, Rich Shepard wrote:
>    Has anyone written a script that will extract named fields from VCF cards
> so the data can be entered into various contact databases? If so, I'd
> appreciate being able to use your tool rather than inventing a new one.

"Impedance matching" like that is usually a two-step process... Figure
out and extract the input fields, then reformat to the input expected
by the destination.  Without knowing both you'll probably end up with
something that still needs massaging to get into your target system.

Unless of course you intend to modify the script by writing the output
module.  Also, according to Wikipedia, there are several variants
(vCard 2.1, 3.0 and 4.0) as well as jCard, hCard and xCard (JSON,
HTML and XML respectively).

If you're handy in Perl there's at least two packages in CPAN that
purport to understand VCF, Text::vCard and Text::VCardFast.

-- 
Jim Garrison (jhg at acm.org)
PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88



More information about the PLUG mailing list