Title says it all. ABQuery takes one argument, a string to search for. Search your address book from the command line. You can search with substrings.

http://ericasadun.com/?p=136