Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Ctrl+C? It's unclear what the issue is with marking end-of-input with Ctrl+D and it's unclear what you would like to do otherwise. Commented Dec 30, 2022 at 7:05
  • It seems you only want to enter one input, something like read val; echo "$val" | tee /dev/pts/1 /dev/pts/2 perhaps? (or shorter read val; echo "$val" | tee /dev/pts/{1,3}) Commented Dec 30, 2022 at 7:14
  • 1
    Also: head -1 | tee /dev/pts/{1,3} Commented Dec 30, 2022 at 8:19
  • echo Hello | tee … Commented Jan 1, 2023 at 1:15