Chinaunix

标题: cat < /etc/motd | ./a.out 是什么意思? [打印本页]

作者: embeddedlwp    时间: 2011-12-20 11:42
标题: cat < /etc/motd | ./a.out 是什么意思?
rt
只求语法解释!
作者: MMMIX    时间: 2011-12-20 12:15
I/O redirection & pipe.
作者: embeddedlwp    时间: 2011-12-20 12:39
与 cat /etc/motd | ./a.out 什么区别啊?
作者: MMMIX    时间: 2011-12-20 13:34
embeddedlwp 发表于 2011-12-20 12:39
与 cat /etc/motd | ./a.out 什么区别啊?

一个用了 I/O redirection,一个没用。
作者: embeddedlwp    时间: 2011-12-20 13:37
是这样,运行效果一样! 谢谢




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2