recursive gpg, as in gzip -r

David SMITH dave.smith at st.com
Thu Aug 7 16:57:31 CEST 2008


On Thu, Aug 07, 2008 at 03:49:52PM +0200, Farkas, Illes wrote:
> Do you happen to know how to use gpg recursively on a directory, similarly
> to "gzip -r" and "gunzip -r" ?

find <directory> -type f -exec gpg --encrypt-files '{}' --recipient <name> \;

HTH...

-- 
David Smith        | Tel: +44 (0)1454 462380    Home: +44 (0)1454 616963
STMicroelectronics | Fax: +44 (0)1454 462305  Mobile: +44 (0)7932 642724
1000 Aztec West    | TINA: 065 2380          GPG Key: 0xF13192F2
Almondsbury        | Work Email: Dave.Smith at st.com
BRISTOL, BS32 4SQ  | Home Email: David.Smith at ds-electronics.co.uk



More information about the Gnupg-users mailing list