Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
主题为什么这个管道被终止了?解释了为什么管道可能会被“head”过早关闭:
find / | head
那么为什么下面的管道没有被“头”关闭?
find / -exec zgrep -l 'a' {} \; | head
使用 grep 而不是 zgrep 会产生很多
find: "grep" terminated by signal 13
警告,但管道仍然保持活动状态。有什么方法可以提前停止与 'grep' 结合使用的'find'?
发生这种情况是因为 find 产生了许多 grep 进程,但是由于它没有找到管道的输出,所以它没有得到信号