Skip to main content
2 of 2
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/

How can a command have more than one output?

In this answer, at the very bottom, Gilles mentions that a command can have more than one output or input.

Yes, there's cat foo bar | something, for having both foo and bar as inputs, and there's tee for outputs; but this doesn't really seem to be what he's talking about.

How can a program have more than one input or output?

strugee
  • 15.4k
  • 18
  • 81
  • 121