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