<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi. I've written a command line utility for searching vCard (version 3.0) files which hold multiple contacts. I use it in conjunction with KAddressBook, for me it's a "must have" command line utility, which is why I decided to release it as open source. In case anybody is interested, it's availiable here:<br><br> <a href="https://sourceforge.net/projects/address-util/">https://sourceforge.net/projects/address-util/</a><br><br>If so, bug reports, and feature suggestions would be welcome. Plus I need some help on the make file. <br><br>Here's the readme:<br><br>ADDRESS-UTIL version 1.0.0<br><br>Copyright (c) 2008 Michael D. Roach<br>Permission to use, copy, modify, and distribute this software is<br>granted under terms provided in the LICENSE file distributed with<br>this software.<br><br>A command line utility for
searching vCard (version 3.0) files which hold<br>multiple contacts.<br><br>The utility is designed to work in concert with another application which<br>allows for export of all contacts in a single "vcf" file or preferably<br>creates such a file by default. The KDE Kontact application on Linux<br>fits this bill quite nicely, on my system it automatically creates and<br>maintains the file:<br><br> ~/.kde/share/apps/kabc/std.vcf<br><br>For convenience, I can set this as the default input file, by running:<br><br> address --file ~/.kde/share/apps/kabc/std.vcf --set-defaults<br><br>I use the Kontact or specifically KAddressBook to store business contacts<br>as well as personal. Note, this does not necessarily clutter the KAddressBook<br>interface as it may be configured to display only contacts in specific<br>categories, e.g. "Friend" and "Family".<br><br>Adding businesses gives me quick and easy access to my
insurance agent's phone<br>number, the local library, auto repair shops, etc.<br><br>I might grab a pizza by using:<br><br> address pizza<br><br>Which outputs:<br><br> Pizza Hut<br> Home 599-0001<br> Address work:<br> 1314 Main Street<br> Moore LA 71234<br> ------------------------<br> Domino's Pizza<br> Home 599-0002<br> Address work:<br> 100 S. Eastern<br> AnyTown LA 71234<br> ------------------------<br> Little Caesar's Pizza (Sante Fe)<br> Home 599-0003<br> Address
work:<br> 10th & Sante Fe<br> AnyTown LA 71234<br><br>Optionally, I can display email addresses, notes, and birthdays. Also, I can<br>output cards of a given category or categories in raw vCard format suitable<br>for redirection to a file.<br><br>Usage:<br> address [ options ] [ search_name [ search_name [...] ] ]<br><br>Allowed options:<br> -h, --help output this message and exit<br> -f path, --file=path read non-default input file (vcf)<br> -b, --birthday also show card birthday<br> -e, --email also show card emails<br> -n,
--notes also show card notes<br> -r, --raw output all data in raw vcard format<br> -c type, --category=type restrict categories e.g. Business<br> -l, --list output all cards in given categories<br> -o, --omit-defaults cancels all default options except "file="<br> --set-defaults writes default options (e.g. address book)<br> --show-defaults show default options and exit<br> --version
output program's version and exit<br><br>Search_names:<br> [first][last][additional] or [last][first][additional] or [name]<br><br>Notes:<br> Use a comma (no spaces) to delimit multiple categories.<br> By default, phone numbers and addresses are listed.<br><br>Examples:<br><br> address --file=/home/me/docs/address.vcf --notes --set-defaults<br> e.g. Sets a default address book and option to show notes.<br><br> address john michael<br> e.g. Finds "Michael P. John" and "Mr. John Michaels Jr."<br><br> address -eb John Michael P<br> e.g. Finds only "Michael P. John", also outputs email and birthday.<br><br> address John<br> e.g. Finds "Michael P. John", "John Michaels" and "The John Furniture"<br><br> address -c Business John<br> e.g. Finds "The John Furniture" (assuming it's a Business
category)<br><br> address --list --category=Personal,Family<br> e.g. Outputs all cards of Personal and/or Family categories.<br><br><br>Long options may be uniquely abbreviated and short options may be chained.<br><br> * AUTHOR<br> - Michael Roach<br> - mdrmikemdr@yahoo.com<br><br><br><br></td></tr></table><br>