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 sectionbash 手册页的 。