&1" 是什么意思?[重定向问题合并], LinuxSir,linux,redhat,suse,debian,gentoo,Mandriva,slack,redflag,kde,gnome,fedora" /> &1" 是什么意思?[重定向问题合并] Linux shell进阶应用与shell编程" /> "2>&1" 是什么意思?[重定向问题合并] - 第2页 - LinuxSir.Org
LinuxSir.Org  
| 网站首页 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
精华主题  
主题工具
旧 03-08-07, 10:14 第 16 帖
lordbyorn
 
lordbyorn 的头像
 
 
临时退役版主  
  注册日期: May 2003
  帖子: 889
  精华: 1
 

so &> eq >& ,right?

Andyou think my understanding is wrong or not?







__________________
Kurt is me.
Studing hard. Making my way to the top of the world.
  lordbyorn 当前离线   回复时引用此帖
旧 03-08-07, 12:01 第 17 帖
NetDC
 
NetDC 的头像
 
 
注册会员  
  注册日期: Aug 2003
  我的住址: FuJian--FuZhou
  帖子: 179
  精华: 0
 

标题: 多谢版主


引用:
最初由 javalee 发表
给楼主一个咱们版以前关于重定向的讨论的铁子,(中文的)
http://www.linuxsir.com/bbs/showthre...D8%B6%A8%CF%F2
另外,在我们提问之前,建议先搜索一下论坛,有很多问题都是可以找到解决方案的!
明白了,不过为什么上面这篇没加到精华呢?:o :o :o
  NetDC 当前离线   回复时引用此帖
旧 03-08-07, 12:57 第 18 帖
Glue
 
Glue 的头像
 
 
注册会员  
  注册日期: Dec 2002
  我的住址: 新加坡
  帖子: 3,129
  精华: 3
 

引用:
最初由 lordbyorn 发表
so &> eq >& ,right?

Andyou think my understanding is wrong or not?
yes,
but &> is preferred.

from "man bash"

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







__________________
又回来了
  Glue 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 12:17


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2012, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2011, LinuxSir.Org