redirection

tee to a file descriptor

2010/08/13

tee to a file descriptor […] 1 $ tee >(cat – >&2) the tee command does fine with file names, but not so much with file descriptors, such as &2. This uses process …

Pipe stdout and stderr, etc., to separate commands

2010/05/11

$ some_command > >(/bin/cmd_for_stdout) 2> >(/bin/cmd_for_stderr) You can use [n]> combined with >(cmd) to attach the various output file descriptors to be the input of different …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it