Skip to content

Instantly share code, notes, and snippets.

@kierdavis
Created September 11, 2012 20:46
Show Gist options
  • Save kierdavis/3701909 to your computer and use it in GitHub Desktop.
Save kierdavis/3701909 to your computer and use it in GitHub Desktop.
How to get your own GPG key id (i.e. the first key in the secret keyring)
#!/bin/sh
gpg --list-secret-keys | sed -n "3s|^.*/\([A-F0-9]\{8\}\).*$|\1|p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment