Skip to content

Instantly share code, notes, and snippets.

@macchaberrycream
Last active December 15, 2018 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macchaberrycream/dcc4d964c72cc20eb35dfd12d070c596 to your computer and use it in GitHub Desktop.
Save macchaberrycream/dcc4d964c72cc20eb35dfd12d070c596 to your computer and use it in GitHub Desktop.
[get my GPG sign-key ID] #GPG #GnuPG
# gpg (GnuPG) 2.2.4
# libgcrypt 1.8.1
command gpg --list-secret-keys --keyid-format LONG "$(whoami)" |
command grep -v '(^[a-z]{3}#|\[expired: [0-9]{4}-[0-9]{2}-[0-9]{2}\]$|>$)' |
command grep '\[S[CA]*\]' |
command cut -d ' ' -f 4 |
command cut -d '/' -f 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment