Last active
December 15, 2018 14:55
-
-
Save macchaberrycream/dcc4d964c72cc20eb35dfd12d070c596 to your computer and use it in GitHub Desktop.
[get my GPG sign-key ID] #GPG #GnuPG
This file contains 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
# 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