Pipe stdout and stderr to separate commands

terminal

some_command > >(/bin/cmd_for_stdout) 2> >(/bin/cmd_for_stderr)
click the source code to copy install terminal on any operating system with command-not-found.com