Created
July 26, 2013 05:03
-
-
Save sevaine/6086399 to your computer and use it in GitHub Desktop.
Get a GPG ID, based on an email address
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
## Local keyring | |
GPG_ID="$(gpg2 --list-keys --with-colons [email protected] | awk -F':' '/^pub/ { print $5 }')" | |
## Specified keyring | |
GPG_ID="$(gpg2 --no-default-keyring --keyring ./some/path/to/keyring.gpg --list-keys --with-colons [email protected] | awk -F':' '/^pub/ { print $5 }')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment