#!/usr/bin/env bash key="$( gpg --list-secret-keys --keyid-format SHORT | grep 'rsa4096' \ | sed 's/sec rsa4096\///' \ | awk '{print $1}' )" echo "$key"