Posts

Showing posts with the label Pipe

Capturing STDERR And STDOUT To File Using Tee

Answer : The latter; it makes sure STDOUT and STDERR of the original command go to the same fd, then feeds them jointly into tee. In the former case, it's the STDERR of the tee command that you'd be joining with its STDOUT.