我正在将 tcsh 脚本转换为 bash,遇到障碍因为我不完全确定 >>& 做了什么
wget --output-document=/dev/null "http://somewebsite.org" >>& /root/wget.log
我确实阅读了手册页 http://linux.die.net/man/1/tcsh但不确定“路由诊断”是什么意思,可能是标准错误...
所以,为了绝对确定,它是否与以下操作相同:
wget --output-document=/dev/null "http://somewebsite.org" 2>>&1 /root/wget.log
在 bash 脚本中?
最佳答案
它将 stdout 和 stderr 附加到文件中,因此它等同于:
wget --output-document=/dev/null "http://somewebsite.org" >> /root/wget.log 2>&1
关于bash ->>& 在 tcsh 脚本中是什么意思,它如何转换为 bash?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30269427/