Comment on $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txtparentComments−xorcist10yThe first cat does absolutely nothing in your example.−pmarreck10yare you sure? how else would you pipe to GPG?−yuubi10yJust redirect gpg's input from the file? gpg ... < hello.txt | curl ... Its stdin will be the file instead of a pipe, but few programs care about the difference and fewer still in such a way that you'd prefer to use the pipe.
Comments
The first cat does absolutely nothing in your example.
are you sure? how else would you pipe to GPG?
Just redirect gpg's input from the file?
Its stdin will be the file instead of a pipe, but few programs care about the difference and fewer still in such a way that you'd prefer to use the pipe.