Categories
Linux Mastering Development

How do a dynamically switch parts of a pipe?

I have a script which should execute a series of commands through a pipe. Depending of the arguments passed to the script: Either it encrypts the file, computes its hash, and sends it to a REST service. Or it compresses the file, computes its hash, and sends it to a REST service. Or it simply […]