Re: gpg couldn't import pgp keys
Thus spake Decklin Foster (fosterd@hartwick.edu):
> Rrrrr, and I *just* re-imported all those keys. Is there a simple way
> to delete them all so I can do this instead? Thanks...
I did something like:
1. gpg --list-keys | grep @ | sed 's/^[^<]*<\([^>]*\)>.*$/\1/' > /tmp/bla
2. editied /tmp/bla and removed entries I wanted to keep
3. perl -e 'foreach (`cat /tmp/bla`) {chomp; system("gpg --yes --batch --delete-key $_"); }'
--
cu,
dex.
-------------------------------------------------------------------------
``As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.''
Albert Einstein
-------------------------------------------------------------------------
Reply to: