On Sat, 29 Jul 2017 20:24, di...@webweaving.org said: > Lovely. Is there any way one can suppress the fingerprint of the primary key > (as when doing line oriented things; bith the ’sec’ and ’ssb’ line are > followed by structurally identical ‘fpr’ lines)?
No. You should use a simple state machine to process them: if you want to get the fingerprints of the subkey, wait for "sub" or "ssb" and catch the fpr or grp lines until you see another "sub" or "ssb" line. Something like this: awk -F: '$1 == "pub" || $1=="sec" {subseen=0; next} $1=="sub" || $1=="ssb" {subseen=1; next} $1=="fpr" && subseen {print $10}' Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
pgpCgZYPCb3ZE.pgp
Description: PGP signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users