- 论坛徽章:
- 0
|
原帖由 blackold 于 2008-9-15 10:43 发表
man 吧,最权威。
说说你的理解嘛
man
> >! >& >&!
Redirect the standard output to a file. If the file
does not exist, it is created. If it does exist, it is
overwritten; its previous contents are lost.
When set, the variable noclobber prevents destruction
of existing files. It also prevents redirection to
terminals and /dev/null, unless one of the ! forms is
used. The & forms redirect both standard output and
the standard error (diagnostic output) to the file.
就是重定向标准输出和标准错误到文件?
那2>&1前面的2是不是不是必须的? |
|