The example below shows the usage of input redirection in CLPPlus.
以下示例显示了在CLPPlus中如何使用输入重定向。
Shells, including bash, also have the concept of a here-document, which is another form of input redirection.
Shell(包括bash)还有存在here-document的概念,它是另一种输入重定向形式。
Instead of needlessly calling cat, we can now use input redirection to translate the Spaces to tabs, as shown in Listing 7.
现在,我们没有必要调用cat,而是使用输入重定向将空格转换成制表符,如清单7所示。
However, if the utility you want to run doesn't accept multiple input arguments, the Z shell's multiple input redirection can come in handy.
但是,如果您要运行的实用工具不接受多个输入参数,则可使用Zshell的多个输入重定向。
However, you can use input redirection for the first command and then pipe that command's output through the rest of the pipeline for the more usual solution.
不过,您可以对第一个命令使用输入重定向,然后在剩余的管道下中导出该命令的输出,这是更加常见的解决方案。
It shows how to use the tool in pipelines and with redirection of input, output, and error streams.
它演示了如何在管道中以及在输入、输出和错误流重定向的情况下使用该工具。
As shown in Listing 8, using the cat command without a file name simply echoes anything typed to standard input; the > redirection captures that to the specified file.
如 清单8 所示,使用不带文件名的cat命令只回显向标准输入键入的任何内容;>重定向将该输入捕获到指定的文件中。
This is particularly true if redirection is used to connect the output of one program to the input of the next.
特别是,如果通过重定向将一个程序的输出连接到另一个程序的输入,仅仅使用这些函数就足够了。
This is particularly true if redirection is used to connect the output of one program to the input of the next.
特别是,如果通过重定向将一个程序的输出连接到另一个程序的输入,仅仅使用这些函数就足够了。
应用推荐