For example
echo \"aaa\" |& cat
What does |&
mean here?
Is there a website recommended to look up those? Since m
This operator pipes both standard output and standard error from the left hand side to the right hand side.
The Bash reference manual has a comprehensive index of all operators where you can lookup these operators.
From man 1 bash
, section Pipelines:
If |& is used, command's standard error, in addition to its standard output, is connected to command2's standard input through the pipe
So it is just like pipe operator |
, but piping both stdout and stderr.