Pipe stdout and stderr, etc., to separate commands

$ 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 commands.

About Amit Agarwal

1 Trackback on “Pipe stdout and stderr, etc., to separate commands”