R
R
redcircle2020-05-04 22:09:48
Command line
redcircle, 2020-05-04 22:09:48

Is there a simple UNIX utility that splits stdin into multiple streams?

For example, to calculate MD5 and SHA384 at once and compress the data, I would like a utility (let's call it multiplex), which would be called something like this

dd if=/dev/sda | multiplex md5sum sha384sum "gzip -9v > sda.gz"


That is, it would take standard input data, run all programs from parameters, and pass them all the same data on standard input.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2020-05-04
@leahch

man tee

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question