相关疑难解决方法(0)

什么时候应该使用输入重定向?

我使用以下两个命令来产生相同的结果:-

[root@localhost ~]# grep line comments
The line should start with a single quote to comment in VB scripting.
Double slashes in the beginning of the line for single line comment in C.
[root@localhost ~]#

[root@localhost ~]# grep line <comments
The line should start with a single quote to comment in VB scripting.
Double slashes in the beginning of the line for single line comment in C.
[root@localhost ~]#
Run Code Online (Sandbox Code Playgroud)

如果这两种方法中的任何一种相互替代,请向我解释任何优点/缺点。

io-redirection

21
推荐指数
2
解决办法
2860
查看次数

标签 统计

io-redirection ×1