Created
October 17, 2009 16:19
-
-
Save terrettaz/212386 to your computer and use it in GitHub Desktop.
Just a simple way to extract email address from your Mac OS AddressBook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mdfind "(kMDItemContentType == com.apple.addressbook.person)" | sed -e 's| |\\ |g' | xargs mdls -name kMDItemEmailAddresses | grep -E '".*@.*"' | sed -e 's|.*"\(.*@.*\)"|\1|g' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment