one-liner to Concatenate Vcard names and numbers
Andy Selby
andyfrommk at gmail.com
Sat Nov 24 14:29:28 PST 2012
After watching a guy on the news talk about flood preparedness and a need
to have a papercopy of your contacts phone numbers I came up with this
one-liner:
perl -ne '/FN:/ && print, /TEL;/ && print' *.vcf > ~/vcardsinfo.txt
You may need to switch the two regexs as fields are not always in the same
order, also contacts with no telephone number show up!
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/miltonkeynes-pm/attachments/20121124/950a5e0d/attachment.html>
More information about the MiltonKeynes-pm
mailing list