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.

One thought on “Pipe stdout and stderr, etc., to separate commands”

This site uses Akismet to reduce spam. Learn how your comment data is processed.