cat file |gpg --passphrase-fd 0 --decrypt --output oldfile newfile