On Fri, Dec 2, 2022 at 10:17 AM <rsyk...@disroot.org> wrote:

> I needed to show the stdout of a command as well as pass
> it to another command's stdin. This works:
>
> odin:~$ echo 1 | tee /dev/ttyp8 | sed 's/1/2/'
> 1
> 2
> odin:~$
>
> where /dev/ttyp8 is the result of the tty command:
>

 Have you considered:

$ echo 1 | tee /dev/tty | sed 's/1/2/'

See the end of the man page for tty (4) for an explanation of /dev/tty.

-ken

Reply via email to