Hi Peter, 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 etc. 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 doesn't work. 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 _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users