On Mon, 18 Jun 2012 10:49, w...@gnupg.org said: > I actually found a bug in GPG: If a key has been disabled, it is not > flagged as disabled in the --with-colons key listing. I need to
Ooops, the API provided to be pretty complicated. I forgot the condition term "$12!~/D/". Thus using $ gpg2 --gen-random 0 262144 | time gpg2 --always-trust --batch -ea \ $(gpg2 --with-colons -k | awk -F: \ '$1=="pub" && $2~/[fmu]/ && $12~/[E]/ && $12!~/[D]/ \ {print "-r "$5;if(++cnt>50){exit}}')\ >/dev/null it picks only the usable keys. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users