Using the following bash one-line command, the decrypted content will be shown in stdout rather than wrote to a file:
gpg -o - -d ENCRYPTEDFILE
To encrypt file content (not the file itself) with pgp and dump the output to stdout use this bash one-line command.