On 2/9/22 20:14, Nikos Papaspyrou wrote:
> [...] I want the input
> (or the contents of FILE) to go to the standard output untouched. The
> filtered input should only go to FILE1 and FILE2.

So the original example is possible with the process substitution you already
mentioned, e.g. with tr(1):

  $ dd if=/dev/random of=/dev/null bs=1M count=1000 status=progress \
      |& tee >(tr '\r' '\n' > LOG)

or with sed(1):

 $ dd if=/dev/random of=/dev/null bs=1M count=1000 status=progress \
      |& tee >( sed 's/\r/\n/g' > LOG)

Have a nice day,
Berny

Reply via email to