[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-users
Subject:    Re: Is there a GnuPG command that shows the number of keys on a keyring?
From:       MFPA <expires2012 () rocketmail ! com>
Date:       2012-07-26 0:02:07
Message-ID: 1833472801.20120726010207 () my_localhost
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi


On Tuesday 24 July 2012 at 11:37:24 AM, in
<mid:87hasxe97f.fsf@vigenere.g10code.de>, Werner Koch wrote:


> 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.

And your comment in a post on another thread, saying there's a
grep-like tool on Windows, prompted me to do a little research in that
direction. It seems (at least on Windows XP) a broadly equivalent
command is:-

gpg --with-colons --list-keys|find /c "pub:"

I could not find a way to check the string "pub:" was at the start of
the line, so the figure will be inaccurate as a key count in the event
any user-ids contain that string.

Thanks to everybody who helped me with this question.

- --
Best regards

MFPA                    mailto:expires2012@rocketmail.com

Never lean forward to push an invisible object.
-----BEGIN PGP SIGNATURE-----

iQCVAwUBUBCJBaipC46tDG5pAQrZoAQAighoUwaB6m+t/9AOMSgZrUT55UUMHIN6
9pVqIMm1jJIcJJWYhhxBhpAfIaxLFT8l7Tw95NHIsxk+WE4+zgvn3npEActrsLc9
zarOQsIIwporySibafiNTex2amwjIGbGX1MjcXa9/qSlLleHUQJUHrhpGNFX30rs
UQZOPju2Aeg=
=CKCE
-----END PGP SIGNATURE-----


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic