Encryption of multiple files into another directory

Josef Carnap carnap at gmx.at
Sun Mar 6 15:28:57 CET 2016


Am 05.03.2016 um 21:12 schrieb Peter Lebbing:
>
> for x in /media/usb/folder_1/*; do gpg2 -o "/media/usb/folder_2/$(basename "$x").gpg" -r 0x12345678 -e "$x"; done
>
> I simply forgot the extension, and GnuPG does what "I" told it to do.
>
>
Thank you so much Peter and Viktor. The improved command works perfectly.

Best regards
Josef



More information about the Gnupg-users mailing list