How to recurse encrypt files

Dominik Schwald dominik@nextbyte.de
Wed Jan 16 16:10:02 2002


Am Dienstag, 15. Januar 2002 21:08 schrieb Bob Metelsky:
> How can I encrypt all files in a directory? Im not sure how the file
> names woould be recreated but possibley  just changing the file
> extension

Hi,
often it's no good idea to delete the old extension, you should keep it 
and simply add .gpg as additional extension.

Here's the script:

for i in *; do gpg -er RECIPIENT -o `echo $i`.gpg `echo $i`; done

Bye, dominik