gpg --fingerprint show only fingerprints and nothing else?

Peter Lebbing peter at digitalbrains.com
Wed Jun 19 11:30:22 CEST 2013


On 19/06/13 00:10, Hauke Laging wrote:
> gpg --with-colons --fingerprint | awk -F: '$1 == "fpr" {print $10;}'

>> when the output ever changes
> 
> It won't (it's designed not to change).

At the risk of sounding pedantic, let me point out that the output you get with
--with-colons is designed not to change. --with-colons is an option added
precisely because the output without that option might change and break scripts.

HTH,

Peter.

-- 
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <http://digitalbrains.com/2012/openpgp-key-peter>



More information about the Gnupg-users mailing list