Home > OS >  A complex redirection
A complex redirection

Time:09-23

Learning Linux shell redirection related content, see the following examples of this redirect
This example comes from: https://wiki-dev.bash-hackers.org/howto/redirection_tutorial#an_example
Really don't understand, has been for two weeks, please understand my classmates to help,

 {{cmd1 3 & gt; & - | cmd2 2 & gt; & 3 3 & gt; & -} 2 & gt; & 1 & gt; & 4 4 & gt; & - | cmd3 3 & gt; & - 4 & gt; & -} 3 & gt; & 2 4 & gt; & 1 

The above command the ultimate effect as shown in the figure below

The final effect:
Cmd1 stdout into cmd2 stdin
Cmd1 stderr into cmd3 stdin

My question is:
1, redirect the execution time: what's the order of the
2, why shut down many times 3, and 4
  • Related