更好的是,管道操作符可以在命令行上组装出专门的程序。
Better yet, the pipe operator assembles AD hoc programs right at the command line.
您可以通过添加更多的命令和管道操作符来构造更长的管道线。
You construct longer pipelines by adding more commands and more pipe operators.
要将命令command1的输出作为过滤器command2的输入,您需要使用管道操作符(|)连接两个命令。
In order to use the output of a command, command1, as input to a filter, command2, you connect the commands using the pipe operator (|).
在两个命令之间使用管道 |操作符将的一个命令的stdout 指向第二个命令的stdin。
You use the | (pipe) operator between two commands to direct the stdout of the first to the stdin of the second.
您了解了如何把数据重定向到stdin或stdout,如何使用管道,以及如何在UNIX中使用操作符;这些都有助于您编写出更强大的脚本,更好地捕捉错误,使逻辑更简洁清晰。
Knowing how to redirect data as stdin or stdout, how to use the pipe, and how to use operators in UNIX helps you write more powerful scripts with better error trapping and cleaner logic.
通过backtick 操作符,我们断定它调用一个管道系统命令(prtconf |grepMemory),而 prtconf 命令是特定于 Solaris 的。
We figure out that it calls a piped system command (prtconf | grep Memory) through the backtick operator, and the prtconf command is specific to Solaris.
只使用一个管道>。值得一看使用命令重定向操作符。
Reads the output from one command and writes it to the input of another command. Also known as a pipe.
只使用一个管道>。值得一看使用命令重定向操作符。
Reads the output from one command and writes it to the input of another command. Also known as a pipe.
应用推荐