Encryption of multiple files into another directory
carnap at gmx.at
Sat Mar 5 19:33:06 CET 2016
thanks for your suggestion.
Am 05.03.2016 um 12:12 schrieb Peter Lebbing:
> On 05/03/16 10:34, Josef Carnap wrote:
> On Linux:
> for x in /media/usb/folder_1/*; do gpg2 -o "/media/usb/folder_2/$(basename "$x")" -r 0x12345678 -e "$x"; done
I've tried this command, but unfortunately it did't work perfectly. In
folder_1 there are files: foo1.docx, foo2.docx, foo3.docx etc.
After processing there are files in folder_2, but the file have the same
file extenstion like the original files: foo1.docx, foo2.docx, foo3.docx
It looks as if the files simply were copied to folder_2. But when I try
to open the *.docx files with Libre Office for example I can see that
So I guess the very problem ist the missing file extension *gpg for the
files in folder_2.
Do you have any idea to modify the command so that the files in folder_2
are: foo1.docx.gpg, foo2.docx.gpg, foo3.docx.gpg etc. (without renaming
the files manually)?
Best regards Josef
More information about the Gnupg-users