> From the man page: Note that this can be done in a bash one-liner:
$ for x in `gpg --list-keys|grep "[A-F0-9]\{40\}"|sed 's/ //g'` ; do gpg --edit-key $x clean save ; done Or in Windows Powershell: > ForEach ($keymatch In &gpg --list-keys|Select-String -Pattern "[A-F0-9]{40}") { &gpg --edit-key $keymatch.ToString().Trim() clean save;} ... There are undoubtedly half a dozen ways to do this quickly. But if you're looking for one, these will do. _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users