Exporting only trusted public keys

Anonymous Sender anonymous@remailer.metacolo.com
Fri Aug 22 11:23:07 2003


David Shaw [20/08/2003]:
> Excellent!  Here's a very minor optimization of that command line
> which skips the call to xargs and avoids converting to and from ASCII:
> 
> gpg --export `gpg --list-keys --fixed-list-mode --with-colons | \
> grep "^pub:[u|f|m]:" | cut -f5 -d":"` | gpg --import \
> --no-default-keyring --keyring /tmp/foo.gpg

No need for quotes around : for the -d option of the 'cut' command.


gpg --export `gpg --list-keys --fixed-list-mode --with-colons | \
grep "^pub:[u|f|m]:" | cut -f5 -d:` | gpg --import \
--no-default-keyring --keyring /tmp/foo.gpg