Is there a GnuPG command that shows the number of keys on a keyring?

Werner Koch wk at gnupg.org
Tue Jul 24 12:37:24 CEST 2012


On Tue, 24 Jul 2012 10:39, rjh at sixdemonbag.org said:

> $ gpg2 --list-keys|grep "^pub"|wc -l

In case you want to put this into a HOWTO, you better write:

  gpg2 --with-colons --list-keys|grep "^pub:"|wc -l

As usual this also works with gpg.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list