"|&"是什么意思?卑鄙的意思? [英] What does "|&" mean in bash?

查看:82
本文介绍了"|&"是什么意思?卑鄙的意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如

echo "aaa" |& cat 

|& 在这里是什么意思?

是否有推荐的网站来查找这些内容?由于大多数搜索引擎不支持搜索特殊字符.

Is there a website recommended to look up those? Since most search engines can't support searching special characters.

推荐答案

来自 man 1 bash ,第管道部分:

如果|&用来,命令的标准错误,除了其标准输出外,还通过管道连接到command2的标准输入

If |& is used, command's standard error, in addition to its standard output, is connected to command2's standard input through the pipe

因此,就像管道运算符 | 一样,但同时传递stdout和stderr.

So it is just like pipe operator |, but piping both stdout and stderr.

这篇关于"|&"是什么意思?卑鄙的意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆