Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

gpg2 --decrypt-files *.gpg - fail, to creates appropriate files without .gpg extension.

gpg2 --output - --decrypt-files *.gpg  
gpg: --output doesn't work for this command

How to do it?

share|improve this question

1 Answer 1

Use gpg-agent and re-execute gpg2 for each file:

export GPG_AGENT_INFO=...
for i in *.gpg; do
    gpg2 --batch -qd < $i
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.