Skip to content

Instantly share code, notes, and snippets.

@cjac
Created March 29, 2017 16:07
Show Gist options
  • Save cjac/2468297e3e43d604e3bf9283b195e826 to your computer and use it in GitHub Desktop.
Save cjac/2468297e3e43d604e3bf9283b195e826 to your computer and use it in GitHub Desktop.
cjac@probook0:/tmp$ KEYGRIP=$(gpg --homedir /tmp/gpg-test/ -k --with-keygrip ${PRIMARY_KEYID} | grep -A1 ${PRIMARY_KEYID} | awk -F= '/Keygrip/ {print $2}')
cjac@probook0:/tmp$ echo $KEYGRIP
150A2FB58E625BD00C906E010C843E0AE03C6771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment