I have a lot of files encrypted with gpg. All files have the same password. Is it possible to use xargs to decrypt files?
ls | xargs -n 1 gpg asks for the password for every file.
|
|
Run gpg-agent or a similar program. Set up gpg to look for a running agent, as explained in the documentation. Enter the passphrase in the agent once and for all (for this session). Note that
|
|||
|
|
|
You can do this :
When "pass" is a complete path to a file that contains your passphrase. Files will be decoded to [same name].decoded. |
|||||||||||
|