我很绝望,我正在寻找一个月的多管道链的参考/源代码,这意味着我可以运行一些东西:
cat /tmp/test.log | wc -l --> stdout
| grep test1 --> stdout
| grep test2 | grep test3 |
| grep test4 --> stdout
| grep test5 --> stdout
请不要在 tee 处理文件时将我发送到 bash/tee/$... 命令,而 bash 太复杂而无法理解...
请注意,顺序无关紧要,完成的第一个链也将被处理。