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.
它演示了如何在管道中以及在输入、输出和错误流重定向的情况下使用该工具。
This is particularly true if redirection is used to connect the output of one program to the input of the next.
特别是,如果通过重定向将一个程序的输出连接到另一个程序的输入,仅仅使用这些函数就足够了。
应用推荐