Is it possible to access the current user's name and email address from the command line in OS X? If so, how would it be done?
There's an open-source CLI app to interact with Contacts (previously known as Address Book).
https://github.com/dhess/contacts
contacts -Hm -f '%e'
contacts -Hm -f '%n'