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.
Related Articles:
- 2010/05/10 Easier Reinstalls
- 2010/05/10 coproc help - a new feature in bash
- 2010/05/09 Download with browse with bash and wget
- 2010/05/07 bash script to periodically change the cursor theme.
- 2010/05/05 xterm – select font name and size from command line and set it as default
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.