Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Created November 12, 2015 21:24
Show Gist options
  • Save gene1wood/9d5066a4fb11056f4e48 to your computer and use it in GitHub Desktop.
Save gene1wood/9d5066a4fb11056f4e48 to your computer and use it in GitHub Desktop.
Command to export all keys in a format that mailvelope can import
for key in `gpg --list-keys | awk '$1 == "pub" {print $2}' | awk -F "/" '{print $2}'`; do
gpg --export -a ${key} >> output.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment