Jok*_*ter 33 linux bash redirection
bash&>
和>&
bash 有什么区别?
tldp
没有提到后者。真的是重定向操作符吗?
或者有人知道更完整的教程吗?
小智 43
从bash man
页面:
There are two formats for redirecting standard output and standard
error:
&>word
and
>&word
Of the two forms, the first is preferred. This is semantically equiva-
lent to
>word 2>&1
Run Code Online (Sandbox Code Playgroud)
阅读redirection section
bash 手册页的 。
归档时间: |
|
查看次数: |
40442 次 |
最近记录: |