我使用以下两个命令来产生相同的结果:-
[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)
如果这两种方法中的任何一种相互替代,请向我解释任何优点/缺点。